question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TikTok unable to extract data

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
apogay37commented, Dec 31, 2021

@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 https://github.com/ytdl-org/youtube-dl/issues/30251#issuecomment-976947005 and it works every time now.
Thanks.

0reactions
Menard01commented, Jan 3, 2022

Ok that’s the same problem I have today to well begin the new year !!! Happy new year they said 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Requesting your data - TikTok Help Center
Requesting your data · 1. In the TikTok app, tap Profile at the bottom. · 2. Tap the Menu button at the top....
Read more >
How to extract data from TikTok with TikTok Scraper - YouTube
Find out how to use the free TikTok Scraper from Apify to extract data about videos, users, ... Your browser can't play this...
Read more >
How to Download All of the Data TikTok Has About You
Open TikTok and head to the Profile tab. · Press the three-line hamburger menu in the top-right corner. · Select Settings and privacy....
Read more >
Unable to fetch user data by using tiktok-scraper npm package
Error: Can't extract user metadata from the HTML page. Make sure that the user does exist and try to use proxy.
Read more >
Tips, Tricks, and Tools for TikTok Data Scraping - DataOx
Scraper API is a perfect solution for large data extraction tasks from TikTok, whether it's video content or topics. However, it is unable ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found