-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[ie/tiktok] Add device_id
extractor-arg
#9951
Conversation
Authored by: bashonly
Authored by: bashonly
Authored by: bashonly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need an IID,
yt-dlp.cmd --extractor-args "tiktok:device_id=716xxxxxxxxxx939" https://www.tiktok.com/@prodvmaia8765/video/7274415859341511982
[TikTok] Extracting URL: https://www.tiktok.com/@prodvmaia8765/video/7274415859341511982
[TikTok] 7274415859341511982: Downloading video feed
WARNING: [TikTok] 7274415859341511982: Failed to parse JSON (caused by JSONDecodeError("Expecting value in '': line 1 column 1 (char 0)")); trying with webpage
[TikTok] 7274415859341511982: Downloading webpage
[info] 7274415859341511982: Downloading 1 format(s): download
tested in your branch too btw
The actual device_id can be found in the mobile app's settings screen, making this a much more user-friendly alternative to the iid. I want to know how get the device_id from the settings screen ? |
Go to tiktok app settings, go to the bottom, tap 5x on the version number |
@renandecarlo thx so much, I got the device_id info by your instructions. |
The Here's a few hosts for you to try also: |
Authored by: bashonly
Per #9506 (comment), some success can be had with mobile API extraction if the user passes a genuine
device_id
instead of relying on the semi-random value the extractor uses. Aniid
may not even be necessary if the device ID is trusted; so this patch also enables API extraction when only adevice_id
is passed (and it then omitsiid
from the API call's query params).The actual
device_id
can be found in the mobile app's settings screen, making this a much more user-friendly alternative to theiid
.Credit to @renandecarlo for discovering this.
Partially addresses #9506
Template
Before submitting a pull request make sure you have:
In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:
What is the purpose of your pull request?