From a97ee9c41a5662e04493ef2f3e3371454f6b5e3d Mon Sep 17 00:00:00 2001 From: Andre <200930841+Andre-Bzk@users.noreply.github.com> Date: Sat, 12 Sep 2026 11:23:24 +0200 Subject: [PATCH] fix: enable yt-dlp browser impersonation for TikTok TikTok now answers requests without a real browser TLS fingerprint with a page yt-dlp cannot parse, so every TikTok extraction failed at the metadata step. yt-dlp can impersonate browsers, but only when curl_cffi is installed on the interpreter it runs on, which the image never provided. --- requirements.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/requirements.txt b/requirements.txt index b140493..940db97 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,3 +13,6 @@ lxml==6.1.1 openai==2.46.0 python-dotenv==1.2.2 aiofiles==25.1.0 +# Not imported by the app: the yt-dlp binary runs on this interpreter and needs +# curl_cffi for browser impersonation, without which TikTok rejects requests +curl_cffi==0.16.3