ytstudio-cli 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
ytstudio/config.py ADDED
@@ -0,0 +1,74 @@
1
+ import json
2
+ from pathlib import Path
3
+
4
+ from rich.prompt import Prompt
5
+
6
+ from ytstudio.ui import console, success_message
7
+
8
+ CONFIG_DIR = Path.home() / ".config" / "ytstudio-cli"
9
+ CLIENT_SECRETS_FILE = CONFIG_DIR / "client_secrets.json"
10
+ CREDENTIALS_FILE = CONFIG_DIR / "credentials.json"
11
+
12
+
13
+ def ensure_config_dir() -> None:
14
+ CONFIG_DIR.mkdir(parents=True, exist_ok=True)
15
+
16
+
17
+ def setup_credentials(client_secrets_file: str | None = None) -> None:
18
+ ensure_config_dir()
19
+
20
+ if client_secrets_file:
21
+ # Copy provided file
22
+ source = Path(client_secrets_file)
23
+ if not source.exists():
24
+ console.print(f"[red]File not found: {client_secrets_file}[/red]")
25
+ raise SystemExit(1)
26
+
27
+ CLIENT_SECRETS_FILE.write_text(source.read_text())
28
+ success_message(f"Client secrets saved to {CLIENT_SECRETS_FILE}")
29
+ else:
30
+ # Interactive setup
31
+ console.print("\n[bold]ytstudio-cli Setup[/bold]\n")
32
+ console.print("You need to create a Google Cloud project and OAuth credentials.")
33
+ console.print("See: https://github.com/jdwit/ytstudio-cli#setup\n")
34
+
35
+ client_id = Prompt.ask("Enter your OAuth Client ID")
36
+ client_secret = Prompt.ask("Enter your OAuth Client Secret")
37
+
38
+ secrets = {
39
+ "installed": {
40
+ "client_id": client_id,
41
+ "client_secret": client_secret,
42
+ "auth_uri": "https://accounts.google.com/o/oauth2/auth",
43
+ "token_uri": "https://oauth2.googleapis.com/token",
44
+ "redirect_uris": ["http://localhost"],
45
+ }
46
+ }
47
+
48
+ CLIENT_SECRETS_FILE.write_text(json.dumps(secrets, indent=2))
49
+ console.print()
50
+ success_message(f"Client secrets saved to {CLIENT_SECRETS_FILE}")
51
+
52
+ console.print("\nRun [bold]ytstudio login[/bold] to authenticate with YouTube.")
53
+
54
+
55
+ def get_client_secrets() -> dict | None:
56
+ if not CLIENT_SECRETS_FILE.exists():
57
+ return None
58
+ return json.loads(CLIENT_SECRETS_FILE.read_text())
59
+
60
+
61
+ def save_credentials(credentials: dict) -> None:
62
+ ensure_config_dir()
63
+ CREDENTIALS_FILE.write_text(json.dumps(credentials, indent=2))
64
+
65
+
66
+ def load_credentials() -> dict | None:
67
+ if not CREDENTIALS_FILE.exists():
68
+ return None
69
+ return json.loads(CREDENTIALS_FILE.read_text())
70
+
71
+
72
+ def clear_credentials() -> None:
73
+ if CREDENTIALS_FILE.exists():
74
+ CREDENTIALS_FILE.unlink()
ytstudio/demo.py ADDED
@@ -0,0 +1,189 @@
1
+ import functools
2
+ import json
3
+ import os
4
+ import time
5
+ from datetime import UTC, datetime, timedelta
6
+ from pathlib import Path
7
+
8
+ DEMO_MODE = os.environ.get("YTSTUDIO_DEMO", "").lower() in ("1", "true", "yes")
9
+
10
+ _DATA_DIR = Path(__file__).parent / "demo_data"
11
+
12
+
13
+ @functools.cache
14
+ def _load(name: str) -> dict:
15
+ return json.loads((_DATA_DIR / name).read_text())
16
+
17
+
18
+ class DemoRequest:
19
+ def __init__(self, response: dict, delay: float = 0):
20
+ self._response = response
21
+ self._delay = delay
22
+
23
+ def execute(self) -> dict:
24
+ if self._delay:
25
+ time.sleep(self._delay)
26
+ return self._response
27
+
28
+
29
+ class _DemoChannels:
30
+ def list(self, **kwargs):
31
+ return DemoRequest(_load("channel.json"))
32
+
33
+
34
+ class _DemoVideos:
35
+ def list(self, **kwargs):
36
+ id_param = kwargs.get("id", "")
37
+ requested_ids = [i.strip() for i in id_param.split(",") if i.strip()]
38
+
39
+ if not requested_ids:
40
+ return DemoRequest(_load("videos.json"))
41
+
42
+ matched = [v for v in _load("videos.json")["items"] if v["id"] in requested_ids]
43
+ return DemoRequest({"items": matched})
44
+
45
+ def update(self, **kwargs):
46
+ body = kwargs.get("body", {})
47
+ return DemoRequest(body, delay=0.3)
48
+
49
+
50
+ class _DemoPlaylistItems:
51
+ def list(self, **kwargs):
52
+ max_results = kwargs.get("maxResults", 50)
53
+ data = _load("playlist_items.json")
54
+ items = data["items"][:max_results]
55
+ return DemoRequest(
56
+ {
57
+ "items": items,
58
+ "pageInfo": {"totalResults": len(data["items"])},
59
+ }
60
+ )
61
+
62
+
63
+ class _DemoCommentThreads:
64
+ def list(self, **kwargs):
65
+ max_results = kwargs.get("maxResults", 100)
66
+ video_id = kwargs.get("videoId")
67
+
68
+ items = _load("comments.json")["items"]
69
+ if video_id:
70
+ items = [
71
+ c
72
+ for c in items
73
+ if c["snippet"]["topLevelComment"]["snippet"].get("videoId") == video_id
74
+ ]
75
+
76
+ return DemoRequest({"items": items[:max_results]})
77
+
78
+
79
+ class _DemoComments:
80
+ def setModerationStatus(self, **kwargs):
81
+ return DemoRequest({})
82
+
83
+
84
+ class DemoDataService:
85
+ def channels(self):
86
+ return _DemoChannels()
87
+
88
+ def videos(self):
89
+ return _DemoVideos()
90
+
91
+ def playlistItems(self):
92
+ return _DemoPlaylistItems()
93
+
94
+ def comments(self):
95
+ return _DemoComments()
96
+
97
+ def commentThreads(self):
98
+ return _DemoCommentThreads()
99
+
100
+
101
+ class _DemoReports:
102
+ def query(self, **params):
103
+ metrics = [m.strip() for m in params.get("metrics", "").split(",") if m.strip()]
104
+ dimensions = [d.strip() for d in params.get("dimensions", "").split(",") if d.strip()]
105
+ filters = params.get("filters", "")
106
+ sort = params.get("sort", "")
107
+ max_results = params.get("maxResults")
108
+
109
+ analytics = _load("analytics_metrics.json")
110
+ video_metrics = {k: v for k, v in analytics.items() if k != "countries"}
111
+ countries = analytics.get("countries", ["US", "IN", "GB", "DE", "BR"])
112
+
113
+ headers = _make_column_headers(dimensions, metrics)
114
+
115
+ def _metric_vals(base: dict) -> list:
116
+ return [base.get(m, 0) for m in metrics]
117
+
118
+ rows = []
119
+
120
+ # Single video filter
121
+ filter_video_id = None
122
+ if filters:
123
+ for part in filters.split(";"):
124
+ if part.startswith("video=="):
125
+ filter_video_id = part.split("==", 1)[1]
126
+
127
+ if not dimensions:
128
+ totals = {m: 0 for m in metrics}
129
+ sources = video_metrics
130
+ if filter_video_id and filter_video_id in video_metrics:
131
+ sources = {filter_video_id: video_metrics[filter_video_id]}
132
+ for base in sources.values():
133
+ for m in metrics:
134
+ totals[m] += base.get(m, 0)
135
+ rows.append([totals[m] for m in metrics])
136
+
137
+ elif dimensions == ["day"]:
138
+ today = datetime.now(UTC).date()
139
+ n_days = 7
140
+ for i in range(n_days, 0, -1):
141
+ date_str = (today - timedelta(days=i)).strftime("%Y-%m-%d")
142
+ vid = list(video_metrics.values())[i % len(video_metrics)]
143
+ rows.append([date_str, *_metric_vals(vid)])
144
+
145
+ elif dimensions == ["country"]:
146
+ for j, country in enumerate(countries):
147
+ vid = list(video_metrics.values())[j % len(video_metrics)]
148
+ rows.append([country, *_metric_vals(vid)])
149
+
150
+ elif "video" in dimensions:
151
+ for vid_id, base in video_metrics.items():
152
+ rows.append([vid_id, *_metric_vals(base)])
153
+
154
+ else:
155
+ totals = {m: 0 for m in metrics}
156
+ for base in video_metrics.values():
157
+ for m in metrics:
158
+ totals[m] += base.get(m, 0)
159
+ dim_vals = ["unknown"] * len(dimensions)
160
+ rows.append([*dim_vals, *[totals[m] for m in metrics]])
161
+
162
+ # Apply sort
163
+ if sort and rows and dimensions:
164
+ sort_desc = sort.startswith("-")
165
+ sort_field = sort.lstrip("-")
166
+ all_names = dimensions + metrics
167
+ if sort_field in all_names:
168
+ idx = all_names.index(sort_field)
169
+ rows.sort(key=lambda r: r[idx], reverse=sort_desc)
170
+
171
+ if max_results and len(rows) > max_results:
172
+ rows = rows[:max_results]
173
+
174
+ return DemoRequest({"columnHeaders": headers, "rows": rows})
175
+
176
+
177
+ def _make_column_headers(dimensions: list[str], metrics: list[str]) -> list[dict]:
178
+ return [{"name": d, "columnType": "DIMENSION", "dataType": "STRING"} for d in dimensions] + [
179
+ {"name": m, "columnType": "METRIC", "dataType": "INTEGER"} for m in metrics
180
+ ]
181
+
182
+
183
+ class DemoAnalyticsService:
184
+ def reports(self):
185
+ return _DemoReports()
186
+
187
+
188
+ def is_demo_mode() -> bool:
189
+ return DEMO_MODE
@@ -0,0 +1,103 @@
1
+ {
2
+ "zQnBQ4tB3ZA": {
3
+ "views": 106666, "likes": 3266, "comments": 80, "shares": 1633,
4
+ "estimatedMinutesWatched": 213333, "averageViewDuration": 135,
5
+ "averageViewPercentage": 62.5, "subscribersGained": 490, "subscribersLost": 49
6
+ },
7
+ "lHhRhPV--G0": {
8
+ "views": 70000, "likes": 2400, "comments": 60, "shares": 1200,
9
+ "estimatedMinutesWatched": 140000, "averageViewDuration": 135,
10
+ "averageViewPercentage": 62.5, "subscribersGained": 360, "subscribersLost": 36
11
+ },
12
+ "rf60MejMz3E": {
13
+ "views": 60000, "likes": 2166, "comments": 50, "shares": 1083,
14
+ "estimatedMinutesWatched": 120000, "averageViewDuration": 135,
15
+ "averageViewPercentage": 62.5, "subscribersGained": 325, "subscribersLost": 32
16
+ },
17
+ "Ata9cSC2WpM": {
18
+ "views": 150000, "likes": 4166, "comments": 106, "shares": 2083,
19
+ "estimatedMinutesWatched": 300000, "averageViewDuration": 135,
20
+ "averageViewPercentage": 62.5, "subscribersGained": 625, "subscribersLost": 62
21
+ },
22
+ "w7ejDZ8SWv8": {
23
+ "views": 226666, "likes": 7166, "comments": 283, "shares": 3583,
24
+ "estimatedMinutesWatched": 453333, "averageViewDuration": 135,
25
+ "averageViewPercentage": 62.5, "subscribersGained": 1075, "subscribersLost": 107
26
+ },
27
+ "dQw4w9WgXcQ": {
28
+ "views": 173000, "likes": 5540, "comments": 155, "shares": 2770,
29
+ "estimatedMinutesWatched": 346000, "averageViewDuration": 128,
30
+ "averageViewPercentage": 59.3, "subscribersGained": 780, "subscribersLost": 78
31
+ },
32
+ "7C2z4GqqS5E": {
33
+ "views": 93000, "likes": 2976, "comments": 74, "shares": 1488,
34
+ "estimatedMinutesWatched": 195300, "averageViewDuration": 142,
35
+ "averageViewPercentage": 65.7, "subscribersGained": 418, "subscribersLost": 41
36
+ },
37
+ "8C3z4GqqS5F": {
38
+ "views": 130000, "likes": 5200, "comments": 210, "shares": 2340,
39
+ "estimatedMinutesWatched": 390000, "averageViewDuration": 180,
40
+ "averageViewPercentage": 55.2, "subscribersGained": 585, "subscribersLost": 58
41
+ },
42
+ "9D4z5HrrT6G": {
43
+ "views": 80000, "likes": 2640, "comments": 62, "shares": 1280,
44
+ "estimatedMinutesWatched": 160000, "averageViewDuration": 131,
45
+ "averageViewPercentage": 61.8, "subscribersGained": 352, "subscribersLost": 35
46
+ },
47
+ "0E5z6IssU7H": {
48
+ "views": 63000, "likes": 2016, "comments": 48, "shares": 945,
49
+ "estimatedMinutesWatched": 132300, "averageViewDuration": 138,
50
+ "averageViewPercentage": 63.9, "subscribersGained": 283, "subscribersLost": 28
51
+ },
52
+ "1F6z7JttV8I": {
53
+ "views": 53000, "likes": 1749, "comments": 42, "shares": 795,
54
+ "estimatedMinutesWatched": 106000, "averageViewDuration": 126,
55
+ "averageViewPercentage": 58.1, "subscribersGained": 238, "subscribersLost": 23
56
+ },
57
+ "2G7z8KuuW9J": {
58
+ "views": 36000, "likes": 1440, "comments": 68, "shares": 720,
59
+ "estimatedMinutesWatched": 108000, "averageViewDuration": 195,
60
+ "averageViewPercentage": 52.8, "subscribersGained": 162, "subscribersLost": 16
61
+ },
62
+ "3H8z9LvvX0K": {
63
+ "views": 70000, "likes": 2310, "comments": 56, "shares": 1050,
64
+ "estimatedMinutesWatched": 140000, "averageViewDuration": 132,
65
+ "averageViewPercentage": 60.9, "subscribersGained": 315, "subscribersLost": 31
66
+ },
67
+ "4I9z0MwwY1L": {
68
+ "views": 86000, "likes": 2838, "comments": 69, "shares": 1376,
69
+ "estimatedMinutesWatched": 180600, "averageViewDuration": 140,
70
+ "averageViewPercentage": 64.4, "subscribersGained": 387, "subscribersLost": 38
71
+ },
72
+ "5J0z1NxxZ2M": {
73
+ "views": 29000, "likes": 1218, "comments": 95, "shares": 580,
74
+ "estimatedMinutesWatched": 72500, "averageViewDuration": 168,
75
+ "averageViewPercentage": 56.4, "subscribersGained": 145, "subscribersLost": 14
76
+ },
77
+ "6K1z2OyyA3N": {
78
+ "views": 60000, "likes": 1920, "comments": 46, "shares": 900,
79
+ "estimatedMinutesWatched": 126000, "averageViewDuration": 134,
80
+ "averageViewPercentage": 61.2, "subscribersGained": 270, "subscribersLost": 27
81
+ },
82
+ "7L2z3PzzB4O": {
83
+ "views": 103000, "likes": 3296, "comments": 82, "shares": 1545,
84
+ "estimatedMinutesWatched": 206000, "averageViewDuration": 130,
85
+ "averageViewPercentage": 60.4, "subscribersGained": 463, "subscribersLost": 46
86
+ },
87
+ "8M3z4QaaC5P": {
88
+ "views": 50000, "likes": 1650, "comments": 40, "shares": 750,
89
+ "estimatedMinutesWatched": 105000, "averageViewDuration": 133,
90
+ "averageViewPercentage": 61.5, "subscribersGained": 225, "subscribersLost": 22
91
+ },
92
+ "9N4z5RbbD6Q": {
93
+ "views": 46000, "likes": 1518, "comments": 36, "shares": 690,
94
+ "estimatedMinutesWatched": 100280, "averageViewDuration": 144,
95
+ "averageViewPercentage": 66.2, "subscribersGained": 207, "subscribersLost": 20
96
+ },
97
+ "0O5z6SccE7R": {
98
+ "views": 56000, "likes": 1848, "comments": 44, "shares": 840,
99
+ "estimatedMinutesWatched": 117600, "averageViewDuration": 131,
100
+ "averageViewPercentage": 60.5, "subscribersGained": 252, "subscribersLost": 25
101
+ },
102
+ "countries": ["US", "IN", "GB", "DE", "BR"]
103
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "items": [
3
+ {
4
+ "id": "UCsBjURrPoezykLs9EqgamOA",
5
+ "snippet": {
6
+ "title": "Fireship",
7
+ "customUrl": "@Fireship"
8
+ },
9
+ "statistics": {
10
+ "subscriberCount": "4060000",
11
+ "viewCount": "654000000",
12
+ "videoCount": "850"
13
+ },
14
+ "contentDetails": {
15
+ "relatedPlaylists": {
16
+ "uploads": "UUsBjURrPoezykLs9EqgamOA"
17
+ }
18
+ }
19
+ }
20
+ ]
21
+ }
@@ -0,0 +1,284 @@
1
+ {
2
+ "items": [
3
+ {
4
+ "id": "Ugw1abc123",
5
+ "snippet": {
6
+ "topLevelComment": {
7
+ "snippet": {
8
+ "authorDisplayName": "CodeNewbie",
9
+ "textOriginal": "This is the best explanation I've ever seen!",
10
+ "likeCount": 1542,
11
+ "publishedAt": "2026-01-15T10:00:00Z",
12
+ "videoId": "zQnBQ4tB3ZA"
13
+ }
14
+ }
15
+ }
16
+ },
17
+ {
18
+ "id": "Ugw2def456",
19
+ "snippet": {
20
+ "topLevelComment": {
21
+ "snippet": {
22
+ "authorDisplayName": "DevSenior",
23
+ "textOriginal": "100 seconds well spent. Subscribed!",
24
+ "likeCount": 856,
25
+ "publishedAt": "2026-01-15T07:00:00Z",
26
+ "videoId": "Ata9cSC2WpM"
27
+ }
28
+ }
29
+ }
30
+ },
31
+ {
32
+ "id": "Ugw3ghi789",
33
+ "snippet": {
34
+ "topLevelComment": {
35
+ "snippet": {
36
+ "authorDisplayName": "EarnBigNow",
37
+ "textOriginal": "I make $5,000/week from home! Visit my profile for the FREE method",
38
+ "likeCount": 0,
39
+ "publishedAt": "2026-01-15T04:00:00Z",
40
+ "videoId": "zQnBQ4tB3ZA"
41
+ }
42
+ }
43
+ }
44
+ },
45
+ {
46
+ "id": "Ugw4jkl012",
47
+ "snippet": {
48
+ "topLevelComment": {
49
+ "snippet": {
50
+ "authorDisplayName": "JuniorDev2024",
51
+ "textOriginal": "Finally understand this after watching 10 other tutorials",
52
+ "likeCount": 634,
53
+ "publishedAt": "2026-01-14T12:00:00Z",
54
+ "videoId": "zQnBQ4tB3ZA"
55
+ }
56
+ }
57
+ }
58
+ },
59
+ {
60
+ "id": "Ugw5mno345",
61
+ "snippet": {
62
+ "topLevelComment": {
63
+ "snippet": {
64
+ "authorDisplayName": "CryptoKing99",
65
+ "textOriginal": "CHECK OUT MY CHANNEL for daily crypto signals!! 100% guaranteed gains!!!",
66
+ "likeCount": 0,
67
+ "publishedAt": "2026-01-14T12:00:00Z",
68
+ "videoId": "dQw4w9WgXcQ"
69
+ }
70
+ }
71
+ }
72
+ },
73
+ {
74
+ "id": "Ugw6pqr678",
75
+ "snippet": {
76
+ "topLevelComment": {
77
+ "snippet": {
78
+ "authorDisplayName": "RustEvangelist",
79
+ "textOriginal": "The borrow checker is your friend, not your enemy. Great intro!",
80
+ "likeCount": 1203,
81
+ "publishedAt": "2026-01-14T09:30:00Z",
82
+ "videoId": "7C2z4GqqS5E"
83
+ }
84
+ }
85
+ }
86
+ },
87
+ {
88
+ "id": "Ugw7stu901",
89
+ "snippet": {
90
+ "topLevelComment": {
91
+ "snippet": {
92
+ "authorDisplayName": "CloudArchitect",
93
+ "textOriginal": "I wish someone showed me Docker this clearly 5 years ago",
94
+ "likeCount": 742,
95
+ "publishedAt": "2026-01-13T22:15:00Z",
96
+ "videoId": "9D4z5HrrT6G"
97
+ }
98
+ }
99
+ }
100
+ },
101
+ {
102
+ "id": "Ugw8vwx234",
103
+ "snippet": {
104
+ "topLevelComment": {
105
+ "snippet": {
106
+ "authorDisplayName": "DataEngineer42",
107
+ "textOriginal": "SQL is still king in 2026. This aged perfectly.",
108
+ "likeCount": 489,
109
+ "publishedAt": "2026-01-13T18:45:00Z",
110
+ "videoId": "3H8z9LvvX0K"
111
+ }
112
+ }
113
+ }
114
+ },
115
+ {
116
+ "id": "Ugw9yza567",
117
+ "snippet": {
118
+ "topLevelComment": {
119
+ "snippet": {
120
+ "authorDisplayName": "LinuxGuru",
121
+ "textOriginal": "btw I use Arch. But seriously, great summary.",
122
+ "likeCount": 1876,
123
+ "publishedAt": "2026-01-13T15:00:00Z",
124
+ "videoId": "4I9z0MwwY1L"
125
+ }
126
+ }
127
+ }
128
+ },
129
+ {
130
+ "id": "Ugw10bcd890",
131
+ "snippet": {
132
+ "topLevelComment": {
133
+ "snippet": {
134
+ "authorDisplayName": "FrontendWizard",
135
+ "textOriginal": "The CSS container queries trick blew my mind",
136
+ "likeCount": 367,
137
+ "publishedAt": "2026-01-13T11:20:00Z",
138
+ "videoId": "2G7z8KuuW9J"
139
+ }
140
+ }
141
+ }
142
+ },
143
+ {
144
+ "id": "Ugw11efg123",
145
+ "snippet": {
146
+ "topLevelComment": {
147
+ "snippet": {
148
+ "authorDisplayName": "StartupFounder",
149
+ "textOriginal": "Showed this to my entire team. Next.js adoption starts Monday.",
150
+ "likeCount": 523,
151
+ "publishedAt": "2026-01-12T20:30:00Z",
152
+ "videoId": "6K1z2OyyA3N"
153
+ }
154
+ }
155
+ }
156
+ },
157
+ {
158
+ "id": "Ugw12hij456",
159
+ "snippet": {
160
+ "topLevelComment": {
161
+ "snippet": {
162
+ "authorDisplayName": "GitMaster",
163
+ "textOriginal": "git rebase --interactive is the real superpower nobody talks about",
164
+ "likeCount": 934,
165
+ "publishedAt": "2026-01-12T16:00:00Z",
166
+ "videoId": "7L2z3PzzB4O"
167
+ }
168
+ }
169
+ }
170
+ },
171
+ {
172
+ "id": "Ugw13klm789",
173
+ "snippet": {
174
+ "topLevelComment": {
175
+ "snippet": {
176
+ "authorDisplayName": "BackendDev",
177
+ "textOriginal": "MongoDB is great until you need joins. Then you cry.",
178
+ "likeCount": 2105,
179
+ "publishedAt": "2026-01-12T12:45:00Z",
180
+ "videoId": "8M3z4QaaC5P"
181
+ }
182
+ }
183
+ }
184
+ },
185
+ {
186
+ "id": "Ugw14nop012",
187
+ "snippet": {
188
+ "topLevelComment": {
189
+ "snippet": {
190
+ "authorDisplayName": "DevOpsNinja",
191
+ "textOriginal": "K8s in 100 seconds but it takes 100 days to master",
192
+ "likeCount": 1458,
193
+ "publishedAt": "2026-01-11T21:00:00Z",
194
+ "videoId": "0E5z6IssU7H"
195
+ }
196
+ }
197
+ }
198
+ },
199
+ {
200
+ "id": "Ugw15qrs345",
201
+ "snippet": {
202
+ "topLevelComment": {
203
+ "snippet": {
204
+ "authorDisplayName": "AIResearcher",
205
+ "textOriginal": "The pace of AI progress is genuinely hard to keep up with",
206
+ "likeCount": 312,
207
+ "publishedAt": "2026-01-11T14:30:00Z",
208
+ "videoId": "5J0z1NxxZ2M"
209
+ }
210
+ }
211
+ }
212
+ },
213
+ {
214
+ "id": "Ugw16tuv678",
215
+ "snippet": {
216
+ "topLevelComment": {
217
+ "snippet": {
218
+ "authorDisplayName": "WebDevDaily",
219
+ "textOriginal": "Svelte compiles away the framework. Still blows my mind every time.",
220
+ "likeCount": 678,
221
+ "publishedAt": "2026-01-11T08:15:00Z",
222
+ "videoId": "0O5z6SccE7R"
223
+ }
224
+ }
225
+ }
226
+ },
227
+ {
228
+ "id": "Ugw17wxy901",
229
+ "snippet": {
230
+ "topLevelComment": {
231
+ "snippet": {
232
+ "authorDisplayName": "Pythonista",
233
+ "textOriginal": "Python: where indentation is not a style choice, it's the law",
234
+ "likeCount": 1789,
235
+ "publishedAt": "2026-01-10T19:00:00Z",
236
+ "videoId": "dQw4w9WgXcQ"
237
+ }
238
+ }
239
+ }
240
+ },
241
+ {
242
+ "id": "Ugw18zab234",
243
+ "snippet": {
244
+ "topLevelComment": {
245
+ "snippet": {
246
+ "authorDisplayName": "FrameworkHopper",
247
+ "textOriginal": "Built the same app 10 times and still can't decide which framework to use",
248
+ "likeCount": 2567,
249
+ "publishedAt": "2026-01-10T13:45:00Z",
250
+ "videoId": "8C3z4GqqS5F"
251
+ }
252
+ }
253
+ }
254
+ },
255
+ {
256
+ "id": "Ugw19cde567",
257
+ "snippet": {
258
+ "topLevelComment": {
259
+ "snippet": {
260
+ "authorDisplayName": "AWSCertified",
261
+ "textOriginal": "My AWS bill after following this tutorial: $0.03. Worth it.",
262
+ "likeCount": 445,
263
+ "publishedAt": "2026-01-10T07:30:00Z",
264
+ "videoId": "9N4z5RbbD6Q"
265
+ }
266
+ }
267
+ }
268
+ },
269
+ {
270
+ "id": "Ugw20fgh890",
271
+ "snippet": {
272
+ "topLevelComment": {
273
+ "snippet": {
274
+ "authorDisplayName": "FlutterDev",
275
+ "textOriginal": "Hot reload alone makes Flutter worth learning",
276
+ "likeCount": 398,
277
+ "publishedAt": "2026-01-09T16:00:00Z",
278
+ "videoId": "lHhRhPV--G0"
279
+ }
280
+ }
281
+ }
282
+ }
283
+ ]
284
+ }