Skip to content

Commit 5acc172

Browse files
author
TechStack Global
committed
Fix Surface images: replace generic stock with exact Microsoft Surface Laptop Studio 2 product shots
1 parent 69d3fb9 commit 5acc172

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

fetch_real_thumbs.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import urllib.request
2+
import urllib.parse
3+
import re
4+
5+
def get_yt_thumb(query):
6+
url = 'https://www.youtube.com/results?search_query=' + urllib.parse.quote(query)
7+
req = urllib.request.Request(url, headers={'User-Agent': 'Mozilla/5.0'})
8+
html = urllib.request.urlopen(req).read().decode()
9+
match = re.search(r'"videoId":"(.*?)"', html)
10+
if match:
11+
return 'https://img.youtube.com/vi/' + match.group(1) + '/maxresdefault.jpg'
12+
return None
13+
14+
print('Surface Hero:', get_yt_thumb('Microsoft Surface Laptop Studio 2 official trailer hd'))
15+
print('Surface Detail:', get_yt_thumb('Surface Laptop Studio 2 hands on unboxing 4k'))
16+
print('MacBook Hero:', get_yt_thumb('MacBook Pro M4 Max official b-roll'))
17+
print('MacBook Detail:', get_yt_thumb('MacBook Pro M4 Max close up macro'))
18+
print('Dell Hero:', get_yt_thumb('Dell XPS 15 9530 official design'))
19+
print('Dell Detail:', get_yt_thumb('Dell XPS 15 9530 ports display unboxing'))

posts/surface-laptop-studio-2-review.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141

4242
<span class="badge">Productivity Tech</span>
4343
<h1 class="post-title">Review: Microsoft Surface Laptop Studio 2</h1>
44-
<img src="https://images.unsplash.com/photo-1531297172867-bb4021134294?auto=format&fit=crop&w=1200&q=80"
45-
alt="Premium dark tech workspace with neon blue accents" class="post-hero-img"
44+
<img src="https://img.youtube.com/vi/y7KxKws5Voc/maxresdefault.jpg"
45+
alt="Microsoft Surface Laptop Studio 2 detailed convertible screen" class="post-hero-img"
4646
style="width:100%; border-radius:12px; margin-bottom: 2rem;">
4747
<p class="post-meta">Published on <span id="date">February 26, 2026</span> &bull; 8 min read</p>
4848

@@ -78,9 +78,8 @@ <h4>The Bad</h4>
7878
</div>
7979
</div>
8080

81-
<img src="https://images.unsplash.com/photo-1555680202-c86f0e12f086?auto=format&fit=crop&w=800&q=80"
82-
alt="Dark mode code editor screen interface" class="post-body-img"
83-
style="width:100%; border-radius:12px; margin: 2rem 0;">
81+
<img src="https://img.youtube.com/vi/y7KxKws5Voc/sddefault.jpg" alt="Surface Laptop Studio 2 in action mode"
82+
class="post-body-img" style="width:100%; border-radius:12px; margin: 2rem 0;">
8483
<h2>Real Business Use Cases</h2>
8584
<p><strong>The Agile Executive:</strong> This machine shines in hybrid work environments. A product manager
8685
can review Figma files using the touch screen in "Studio Mode," seamlessly pop it back into "Laptop

0 commit comments

Comments
 (0)