TikTok-Api
TikTok-Api copied to clipboard
[BUG] - TikTok returning status_code 0 from trending.videos
Describe the bug
api.trending.videos is not returning any results. Stepping into the TikTok-Api code reveals that TikTok is responding with status_code 0 with no other objects in the response:
Going to the url crafted in Trending.py returns the same status_code 0 response:
The buggy code
from TikTokApi import TikTokApi
with TikTokApi() as api:
for trending_video in api.trending.videos(count=50):
print(trending_video.author.username)
Expected behavior
Videos would be returned from the call
Desktop (please complete the following information):
- OS: Windows 10
- TikTokApi Version 5.1.1
Seeing the same issue on Mac as well.
I have the same problem
same problem here
Same here, interesting enough, copying the URL that requests.get
is using and just pasting it into the browser returns a valid payload with tiktok data. Not sure how the request is messing it up :/
Should be fixed in V6