Skip to content

Commit 296c768

Browse files
author
TechStack Global
committed
Initial B2B Blog Launch by Antigravity Autopilot
1 parent 2bc6f23 commit 296c768

File tree

4 files changed

+25
-2
lines changed

4 files changed

+25
-2
lines changed

assets/images/macbook_hero.jpg

47.5 KB
Loading

assets/images/macbook_internal.jpg

70.3 KB
Loading

download_images.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import requests
2+
import os
3+
4+
images = {
5+
"https://m.media-amazon.com/images/I/61-oTP1X4rL._AC_SL1500_.jpg": "assets/images/macbook_hero.jpg",
6+
"https://m.media-amazon.com/images/I/61F6Ng0di0L._AC_SL1500_.jpg": "assets/images/macbook_internal.jpg"
7+
}
8+
9+
os.makedirs("assets/images", exist_ok=True)
10+
11+
for url, path in images.items():
12+
print(f"Downloading {url} to {path}...")
13+
try:
14+
response = requests.get(url, stream=True, timeout=10)
15+
if response.status_code == 200:
16+
with open(path, 'wb') as f:
17+
for chunk in response.iter_content(chunk_size=8192):
18+
f.write(chunk)
19+
print("Success")
20+
else:
21+
print(f"Failed with status code: {response.status_code}")
22+
except Exception as e:
23+
print(f"Error: {e}")

posts/apple-macbook-pro-m4-pro-review.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<h1 class="post-title">Review: Apple MacBook Pro M4 Pro (2024/2026 Scale)</h1>
8080
<div
8181
style="background-color: white; border-radius: 12px; margin-bottom: 2rem; padding: 2rem; text-align: center;">
82-
<img src="https://m.media-amazon.com/images/I/61-oTP1X4rL._AC_SL1500_.jpg"
82+
<img src="/assets/images/macbook_hero.jpg"
8383
alt="Official Apple MacBook Pro M4 Pro - Space Black Front View" class="post-hero-img"
8484
style="max-width:100%; max-height: 500px; object-fit: contain;">
8585
</div>
@@ -118,7 +118,7 @@ <h4>The Bad</h4>
118118

119119
<div
120120
style="background-color: white; border-radius: 12px; margin: 2rem 0; padding: 2rem; text-align: center;">
121-
<img src="https://m.media-amazon.com/images/I/61F6Ng0di0L._AC_SL1500_.jpg"
121+
<img src="/assets/images/macbook_internal.jpg"
122122
alt="MacBook Pro M4 Pro Internal View - Keyboard and Trackpad" class="post-body-img"
123123
style="max-width:100%; max-height: 400px; object-fit: contain;">
124124
</div>

0 commit comments

Comments
 (0)