[Tiktok] Unable to download some Tiktok videos
See original GitHub issueChecklist
- Iβm reporting a broken site
- Iβve verified that Iβm running yt-dlp version 2021.12.27. (update instructions)
- 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. DO NOT post duplicates
- Iβve read the guidelines for opening an issue
- Iβve read about sharing account credentials and Iβm willing to share it if required
Region
US
Description
Unable to download some Tiktok videos
Verbose log
root@local:~/test# /usr/local/bin/yt-dlp.sh -Uv https://www.tiktok.com/@chloecatalanooo/video/7041197121529203974?_t=8OnUindHzoj
[debug] Command-line config: ['-Uv', 'https://www.tiktok.com/@chloecatalanooo/video/7041197121529203974?_t=8OnUindHzoj']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2021.12.27 [6223f67a8] (source)
[debug] Plugins: ['SamplePluginIE', 'SamplePluginPP']
[debug] Git HEAD: 1e5c83b26
[debug] Python version 3.9.7 (CPython 64bit) - Linux-4.9.0-17-amd64-x86_64-with-glibc2.24
[debug] exe versions: ffmpeg 4.1.2, ffprobe 4.1.2, phantomjs 2.1.1
[debug] Optional libraries: sqlite
[debug] Proxy map: {}
Latest version: 2021.12.27, Current version: 2021.12.27
yt-dlp is up to date (2021.12.27)
[debug] [TikTok] Extracting URL: https://www.tiktok.com/@chloecatalanooo/video/7041197121529203974?_t=8OnUindHzoj
[TikTok] 7041197121529203974: Downloading video details
WARNING: [TikTok] 7041197121529203974: Failed to parse JSON (caused by JSONDecodeError('Expecting value: line 1 column 1 (char 0)')); please report this issue on https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; see https://github.com/yt-dlp/yt-dlp on how to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.; Retrying with webpage
[TikTok] 7041197121529203974: Downloading webpage
[TikTok] 7041197121529203974: Downloading video webpage
ERROR: [TikTok] 7041197121529203974: Unable to extract json_string; please report this issue on https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; see https://github.com/yt-dlp/yt-dlp on how to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.; please report this issue on https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; see https://github.com/yt-dlp/yt-dlp on how to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.
File "/opt/yt-dlp/yt_dlp/extractor/common.py", line 599, in extract
ie_result = self._real_extract(url)
File "/opt/yt-dlp/yt_dlp/extractor/tiktok.py", line 368, in _real_extract
json_string = self._search_regex(
File "/opt/yt-dlp/yt_dlp/extractor/common.py", line 1173, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Why Can't I Save a TikTok Video? Here Are 2 Fixes to Solve ...
The most common cause of the issue "can't download a TikTok video" is that the video download option is disabled by the creator....
Read more >Why can't I save certain videos on TikTok? - Quora
You can't save some videos in Tik Tok because The creator has not allowed people to download their videos. Actually this can be...
Read more >Can't Save a TikTok Video From the App? Try These Two ...
Open the TikTok app or go to the TikTok website and locate the video you want to download. Β· Tap on the share...
Read more >Why Can't I Save TikTok Videos? How To Download ... - Bustle
Once you have the video open, simply press down on your screen to pull up an options menu, where you should see βsave...
Read more >Video Downloads - TikTok Help Center
1. Tap Profile in the bottom right to go to your profile. 2. Tap the 3-line icon in the top right to go...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yep, duplicate of #2133. Fix is already in master and will be in next release.
See also #2133.
The fix for SIGI-type pages appears to be included in the yt-dlp version that gets run as
Git HEAD: f5c2c2c9b
, and was observed and patched for yt-dl some time ago as well: PR #30224, issue #30251. There have been several commits to the extractor since the release, including the SIGI fix.Whereas in yt-dl, the extractor tries to get a cookie for the page of interest by fetching
https://www.tiktok.com/
and this now times out in all Python versions tested: see https://github.com/ytdl-org/youtube-dl/issues/30251#issuecomment-1006967496.