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.

[Broken]Tiktok seems to be broken

See original GitHub issue

Checklist

  • I’m reporting a broken site support
  • I’ve verified that I’m running youtube-dlc version 2020.10.24
  • 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

ytdlc -v https://www.tiktok.com/@charlidamelio/video/6854565358808993029
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.tiktok.com/@charlidamelio/video/6854565358808993029']
[debug] Loading archive file None
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dlc version 2020.10.24-5
[debug] Python version 2.7.16 (CPython) - Darwin-19.6.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[TikTok] 6854565358808993029: Downloading video webpage
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "./ytdlc/__main__.py", line 19, in <module>
  File "./ytdlc/youtube_dlc/__init__.py", line 487, in main
  File "./ytdlc/youtube_dlc/__init__.py", line 477, in _real_main
  File "./ytdlc/youtube_dlc/YoutubeDL.py", line 2096, in download
  File "./ytdlc/youtube_dlc/YoutubeDL.py", line 830, in extract_info
  File "./ytdlc/youtube_dlc/extractor/common.py", line 532, in extract
  File "./ytdlc/youtube_dlc/extractor/tiktok.py", line 137, in _real_extract
  File "./ytdlc/youtube_dlc/extractor/tiktok.py", line 22, in _extract_aweme
AttributeError: 'NoneType' object has no attribute 'get'

Description

https://www.tiktok.com/@charlidamelio/video/6854565358808993029

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:15

github_iconTop GitHub Comments

1reaction
GreyAlien502commented, Oct 27, 2020

Also, i’ve submitted pull request #20 for the 403 error. Any feedback would be welcome. It always works for me, but the more testing the better.

0reactions
mervalcommented, Oct 27, 2020

I am also getting 403 errors. Just making some observations here:

If I look at a video page loaded in a web browser, it’s setting 4 cookies. If I make a python request to this same page, I only get 2 cookies set: tt_webid and tt_webid_v2. The missing ones are MONITOR_WEB_ID and s_v_web_id.

Share links do actually consistently work. As in vm.tiktok.com/something. You generate those from inside the app. yt-dlc will follow a redirect from the share link to a normal-looking video URL with a number of extra parameters passed in. Not sure what else is different.

If you add --cookies cookies.txt and then run it a second time, it’ll work. I don’t think it’s a missing cookie issue, since the cookies written are just those two.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'Oh No, Our Table, It's Broken' Explained: Meme ... - Insider
Audio of glass breaking and a child saying "oh no, our table, it's broken" has exploded on TikTok. The audio comes from a...
Read more >
How to fix a 'broken' TikTok FYP as users report algorithm glitch
Hundreds of TikTok users have been taking to Twitter today to report that their For You Page is 'broken'. The glitch appears to...
Read more >
For You Page broken? TikTok glitches again as users ...
TikTok users reported a FYP (For You Page) 'glitch' on July 28. According to users, they are only being shown random viral videos...
Read more >
Watch Fix.The.Broken's Newest TikTok Videos
Fix.The.Broken (@fix.the.broken) on TikTok | 0 Likes. 8.8K Followers. God Forever✝️ I just wanna help the hurt❤️ Jeremiah 17:14.
Read more >
How to fix Broken TikTok icon on Youtube Channel Art
In this video, I am going to tackle YouTube basics. If you added the TikTok link on your YouTube basic info that will...
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