-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TikTok: youtube-dl hangs after "Requesting Header" #30538
Comments
This looks like a wider occurrence of this noted in PR #30479:
OP's URL isn't known to the TT extractor, so the error occurs in the generic extractor. However, even if the TT extractor does handle the URL the same error occurs. More research needed. The tool illustrated (now) below uses an API that doesn't have this problem. If, as with some YT APIs, this API can't currently be changed because of unmodifiable deployed clients, the API may be a safer target. |
As to the headers:
This piece of
I wasn't been able to break through the block even by clearing headers deep in the Python HTTP routines, whereas apparently similar requests formulated with curl or wget are OK. Presumably whatever MITM Proxy does also passes the block. yt-dlp uses the aweme API. |
Hi! Apparently, changing the user agent is the only change needed to fix it:
Patrick |
Thanks, I confirm that for Py 2.7.17/3.5.5/3.9.7, so some junk header must be confusing things. |
To download tiktok videos, you have only to right click and "Download the video" #noobs |
Yes, but you already told us that, and the information was noted, and then your post magically vanished... |
FWIW, I see this failing with "Unable to extract data" after adding the user-agent.
|
@89z the one in the issue description.
|
Verbose log
Description
After Requesting header, youtube-dl hangs forever.
The text was updated successfully, but these errors were encountered: