davidteather / TikTok-Api

The Unofficial TikTok API Wrapper In Python
https://davidteather.github.io/TikTok-Api
MIT License
4.88k stars 976 forks source link

Trending is broken #46

Closed Xylot closed 4 years ago

Xylot commented 4 years ago

The trending function doesn't appear to be working correctly. When called, the browser hangs at this screen https://puu.sh/EYb34/7122b7c6f6.png and no errors are produced during the process.

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.99. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

davidteather commented 4 years ago

I imagine TikTok once again changed something and will be looking into it in the next couple of days.

unseenthings commented 4 years ago

Any movement on this? I'm seeing the same thing.

davidteather commented 4 years ago

The API is currently broken as TikTok is detecting selenium. You may want to look at this. I believe it may still work, but I'm not completely sure.

I will be working on fixing the API in the upcoming days, but like last time there might end up being no progress.

unseenthings commented 4 years ago

I've gotten the basic TikTokBot to work (your other code repo) -- I believe it was an issue with the proxy that was causing this issue. But not this yet...

Is there a way to see what content is in the proxy or moving through it? I've tried looking at the docs for it and the code from this and the other but haven't really found anything that makes sense to me yet.

Thanks for the update, in any case.

hackmoore commented 4 years ago

Just wanted to bump this. Also having issues loading the trending page

omaidf commented 4 years ago

Looks like it's broken for me as well.

hackmoore commented 4 years ago

From what I can see, they're detecting artificial browsers (selenium/requests) and providing an invalid signature which fails to return useful JSON response. This causes it to never leave the loading graphic.

yesaulov commented 4 years ago

Guys, here is idea on how to get correct signature https://github.com/carcabot/tiktok-signature/blob/master/index.js . Trying to migrate that to python+browsermob

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

davidteather commented 4 years ago

@yesaulov just saw your comment and am working on porting it to python right now! Thanks! A new working release should be out in a few hours.

davidteather commented 4 years ago

This is no longer broken. The issue has been fixed in a new update. Run the following command to upgrade.

pip install TikTokApi --upgrade
yuvraj108c commented 4 years ago

This is no longer broken. The issue has been fixed in a new update. Run the following command to upgrade.

pip install TikTokApi --upgrade

Tried this, still not working