Skip to content

fix(yt-dlp): install curl_cffi so TikTok fetches can impersonate a browser - #384

Merged
rponeawa merged 1 commit into
mainfrom
fix/yt-dlp-curl-cffi
Oct 8, 2026
Merged

rponeawa merged 1 commit into
mainfrom
fix/yt-dlp-curl-cffi

Conversation

@rponeawa

@rponeawa rponeawa commented Oct 8, 2026

Copy link
Copy Markdown
Member

Closes #381.

TikTok rejects the TLS fingerprint of the locked yt-dlp environment, so hypit media fetch fails with Unexpected response from webpage request. This adds yt-dlp's curl-cffi extra so it can impersonate a browser. The lockfile adds curl-cffi 0.16.3 and typing-extensions; curl_cffi ships prebuilt wheels for macOS, Linux (glibc and musl) and Windows.

After uv sync --frozen, yt-dlp --list-impersonate-targets lists Chrome targets through curl_cffi, and the TikTok extractor no longer warns that no impersonate target is available.

An environment prepared before this change keeps the same yt-dlp version directory, so it needs hypit media prepare-fetch again to install curl_cffi.

…owser

TikTok rejects the TLS fingerprint of the locked Python environment, so
hypit media fetch failed with "Unexpected response from webpage request".
The curl-cffi extra lets yt-dlp impersonate a browser. Existing prepared
environments need hypit media prepare-fetch again to pick it up.

Reported in #381.
@rponeawa
rponeawa merged commit 9ed7eef into main Oct 8, 2026
@rponeawa
rponeawa deleted the fix/yt-dlp-curl-cffi branch October 8, 2026 14:11
854771076 pushed a commit to 854771076/hypit that referenced this pull request Oct 9, 2026
…owser (hypit-ai#384)

TikTok rejects the TLS fingerprint of the locked Python environment, so
hypit media fetch failed with "Unexpected response from webpage request".
The curl-cffi extra lets yt-dlp impersonate a browser. Existing prepared
environments need hypit media prepare-fetch again to pick it up.

Reported in hypit-ai#381.
SanHsien pushed a commit to SanHsien/hypit that referenced this pull request Oct 24, 2026
…owser (hypit-ai#384)

TikTok rejects the TLS fingerprint of the locked Python environment, so
hypit media fetch failed with "Unexpected response from webpage request".
The curl-cffi extra lets yt-dlp impersonate a browser. Existing prepared
environments need hypit media prepare-fetch again to pick it up.

Reported in hypit-ai#381.

(cherry picked from commit 9ed7eef)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

media fetch: TikTok fails without curl_cffi in the yt-dlp environment

1 participant