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.

[BUG] - Cannot Download Video

See original GitHub issue

Describe the bug

The downloadAddr of a tiktok item points to a site where I get a 403 - Forbidden Message. Therefore, I am not able to download the videos by using api.get_Video_By_TikTok. Is there a workaround?

The buggy code

Please insert the code that is throwing errors or is giving you weird unexpected results.

api = TikTokApi()
items = api.trending(5)
for item in items:
    video_bytes = api.get_Video_By_TikTok(item)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
davidteathercommented, Sep 16, 2020

Fixed in the newest release will be out on pypi in a few minutes

1reaction
davidteathercommented, Sep 17, 2020

Where ever you’re actually downloading it from the playAddr add the following header then it should work.

r = requests.get(tiktok_video_url, headers={'referer': ''https://www.tiktok.com/'})
Read more comments on GitHub >

github_iconTop Results From Across the Web

[Problem Solved!] Can't Download YouTube Videos Anymore
Try These Things If You Can't Download Videos from YouTube · # Fix 1: Use MiniTool uTube Downloader · # Fix 2: Sign/Re-sign...
Read more >
I can't download videos - Android - YouTube Help
I can't download videos. Note: If you don't have YouTube Premium or if downloading isn't available to you, the download button will be...
Read more >
Why can't I download YouTube videos anymore - EaseUS
In this article, I'd like to explain why you can't download YouTube videos anymore and how to successfully download YouTube videos in 3...
Read more >
Can't Download YouTube Videos - Why & How to Fix It
If you suddenly cannot download videos from YouTube Premium or the downloader, you can record it. Here are more solutions to fix YouTube ......
Read more >
How to Fix Cannot Download YouTube Video - AceThinker
How to Fix Cannot Download YouTube Video ; Step 1 Install the AceThinker Video Keeper ; Step 2 Download YouTube Videos that cannot...
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