Skip to content
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 unable to extract data #30439

Open
5 tasks done
Janitsu opened this issue Dec 29, 2021 · 5 comments
Open
5 tasks done

TikTok unable to extract data #30439

Janitsu opened this issue Dec 29, 2021 · 5 comments

Comments

@Janitsu
Copy link

Janitsu commented Dec 29, 2021

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2021.12.17
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

[debug] System config: []
[debug] User config: ['--no-mtime', '--merge-output-format', 'mp4', '-o', 'D:\\YouTube-dl\\downloads\\%(id)s.%(ext)s', '--restrict-filenames']
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.tiktok.com/@imchase6/video/7044750503141444911']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg 2021-10-28-git-e84c83ef98-full_build-www.gyan.dev, ffprobe 2021-10-28-git-e84c83ef98-full_build-www.gyan.dev
[debug] Proxy map: {}
[TikTok] Setting up session
[TikTok] 7044750503141444911: Downloading webpage
ERROR: Unable to extract data; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 815, in wrapper
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 836, in __extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\common.py", line 534, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\tiktok.py", line 112, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\common.py", line 1012, in _search_regex
youtube_dl.utils.RegexNotFoundError: Unable to extract data; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

Trying to download anything from TikTok seems to result in an error (ERROR: Unable to extract data). I tried this with multiple different links, checking that they work in the browser. Also tried to download them separately, without my user configuration, and all in one big bunch, but it didn't seem to help. It would appear that TikTok has implemented a Captcha system on the site because I had to pass it a few times over the course of testing and I suspect that it might be the reason why it is not working properly.

After trying out a multiple of links that I had saved up, I looked up a new link that was popular on the site and inserted that into the command line. It resulted in a similar verbose log and didn't work. I selected one that was quite popular and didn't seem to have any people in it to protect people's identities. Here's the link to that video: https://www.tiktok.com/@karenlafleur/video/6913759091974262022

@Janitsu
Copy link
Author

Janitsu commented Dec 29, 2021

Thanks @89z, I'll take a look at it 👍

@dirkf
Copy link
Contributor

dirkf commented Dec 29, 2021

TikTok may unpredictably serve different page versions.

Duplicate of #30251.

@apogay37
Copy link

@dirkf, it was "sometimes". I had to do up to 6 attempts to download one video. But now it doesn't work at all.
Applied your patch #30251 (comment) and it works every time now.
Thanks.

@dirkf
Copy link
Contributor

dirkf commented Dec 31, 2021

That's consistent with what was observed in #30251, ie the same page being served using two different JS framework technologies.

@Menard01
Copy link

Menard01 commented Jan 3, 2022

Ok that's the same problem I have today to well begin the new year !!! Happy new year they said :(

@ghost ghost mentioned this issue Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants