Repository navigation
fix(yt-dlp): install curl_cffi so TikTok fetches can impersonate a browser - #384
Merged
Merged
Conversation
…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.
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #381.
TikTok rejects the TLS fingerprint of the locked yt-dlp environment, so
hypit media fetchfails withUnexpected response from webpage request. This adds yt-dlp'scurl-cffiextra so it can impersonate a browser. The lockfile addscurl-cffi0.16.3 andtyping-extensions; curl_cffi ships prebuilt wheels for macOS, Linux (glibc and musl) and Windows.After
uv sync --frozen,yt-dlp --list-impersonate-targetslists 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-fetchagain to install curl_cffi.