From 5e655ddd2c29ddb323702f9a17b746af1569e6a1 Mon Sep 17 00:00:00 2001 From: sherl Date: Thu, 4 Sep 2025 21:45:18 +0200 Subject: [PATCH] chore: update version strings in headers and context json --- ythdd_extractor.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ythdd_extractor.py b/ythdd_extractor.py index b283e46..1d2c43f 100644 --- a/ythdd_extractor.py +++ b/ythdd_extractor.py @@ -66,7 +66,7 @@ stage1_body = { stage2_headers = { "Connection": "keep-alive", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Language": "en-us,en;q=0.5", "Sec-Fetch-Mode": "navigate", @@ -75,13 +75,13 @@ stage2_headers = { stage3_headers = { "Connection": "keep-alive", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Language": "en-us,en;q=0.5", "Sec-Fetch-Mode": "navigate", "Content-Type": "application/json", "X-Youtube-Client-Name": "1", - "X-Youtube-Client-Version": "2.20250226.01.00", + "X-Youtube-Client-Version": "2.20250829.01.00", "Origin": "https://www.youtube.com", "Accept-Encoding": "gzip, deflate, br", "Cookie": "PREF=hl=en&tz=UTC; SOCS=CAI" @@ -93,7 +93,7 @@ stage3_body = { "client": { "clientName": "WEB", - "clientVersion": "2.20250226.01.00", + "clientVersion": "2.20250829.01.00", "hl": "en", "timeZone": "UTC", "utcOffsetMinutes": 0 @@ -111,9 +111,9 @@ web_context_dict = { 'gl': 'US', 'deviceMake': '', 'deviceModel': '', - 'userAgent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0,gzip(gfe)', + 'userAgent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0,gzip(gfe)', 'clientName': 'WEB', - 'clientVersion': '2.20250226.01.00', + 'clientVersion': '2.20250829.01.00', 'osName': 'Windows', 'osVersion': '10.0', 'screenPixelDensity': 2, @@ -121,7 +121,7 @@ web_context_dict = { 'screenDensityFloat': 2, 'userInterfaceTheme': 'USER_INTERFACE_THEME_LIGHT', 'browserName': 'Firefox', - 'browserVersion': '135.0', + 'browserVersion': '142.0', 'acceptHeader': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'utcOffsetMinutes': 0, }