-
Notifications
You must be signed in to change notification settings - Fork 5
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:user+TTUser] Unable to extract sigi state #5
Comments
EDIT: If you are experiencing this issue, try installing/reinstalling the newest version of the plugin |
sorry, if I can't reproduce the error, then I can't fix it either provide more info, e.g. logs, |
what happens when you open the user's pages in a private browsing tab? is tiktok asking you to log in? |
Same error here.
|
That would be the issue then. Something is causing you to get a captcha page instead of the user page (IP flagged? fingerprinting? who knows) Possible workaround would be to solve the captcha in browser and then pass |
or you could use the extractor arg if you know the
|
@bashonly Thanks for the tip! def _get_sec_uid(self, user_url, user_name, msg):
webpage = self._download_webpage(
user_url, user_name, fatal=False, headers={'User-Agent': 'Mozilla/5.0'},
note=f'Downloading {msg} webpage', errnote=f'Unable to download {msg} webpage')
udata_json = clean_html(get_element_by_id('__UNIVERSAL_DATA_FOR_REHYDRATION__', webpage))
udata = json.loads(udata_json)
u = udata['__DEFAULT_SCOPE__']['webapp.user-detail']['userInfo']['user']
return u['secUid'] |
Hi sorry for asking but how does one get the "secUid"? I tried googling and it let me here but those links don't seem to work anymore. (link: carcabot/tiktok-signature#167 ) |
If you are able to download a single video from the user with yt-dlp, you can get the
where |
Thank you, was getting the "Unable to extract sigi state" error before and now it works again after passing |
Just an update (not complaining and still better than nothing), I did a test run with an account with 1800++ videos and the issue still persist every now and then in the middle of downloading.
|
I am having this same issue. This "yt-dlp --print channel_id "URL"" do solve the problem however it is time consuming if you got multiple urls to download Any solution please ? |
That's a different issue, and it's not an issue specific to this plugin. The same thing would happen if you tried to download that video individually with its video URL via yt-dlp. And what's that this is for:
To use both extractor-args simultaneously, you would pass them as: |
You could try applying the patch posted above by nijippoi and seeing if that helps. Otherwise, no, there is no solution for now. I'll need to investigate. Could maybe try making sigi state extraction non-fatal to see if the other two user pages are captcha-walled as well |
Hi, how do I make this as part of my config file ? (totally newbie to coding) |
@Vladimir-russian just install the newest version of the plugin. It incorporates that patch |
Thank you for taking the time to explain things like this. I actually use the command Also the plug-in now works again like normal after re-installation for me. Thank you again. |
I noticed when testing mass a big channel If a video doesnt have a sound you will get |
If you're referring to yt-dlp's built-in tiktok user extractor, that's because it got the video info from a different API endpoint where those videos were still available from. We no longer can access that endpoint (which is why the plugin is necessary). Your only hope of downloading those videos now is by using the |
This comment was marked as off-topic.
This comment was marked as off-topic.
@modelfe that is a video URL, not a user URL. The plugin is not being invoked in that log at all. That is a yt-dlp issue |
This comment was marked as off-topic.
This comment was marked as off-topic.
How did it fail to download with the plugin and |
This comment was marked as off-topic.
This comment was marked as off-topic.
@modelfe Are you able to view those videos on the website (not the app) when not logged in? |
You probably need to authenticate with "--cookies" or "--cookies-from-browser" If the video is friends only, make sure you're following the profile. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@modelfe @wireman21 As far as the plugin is concerned, all this really tells me is that |
This comment was marked as off-topic.
This comment was marked as off-topic.
@wireman21 OK but that's not related to this issue. You could open a new issue for that, with a full verbose log |
WARNING: The program functionality for this site has been marked as broken, and will probably not work.
ERROR: [tiktok:user+TTUser] hugostunes: Unable to extract sigi state; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U
The text was updated successfully, but these errors were encountered: