davidteather / TikTok-Api

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

All byHashtag, by Sound, discover(), trending() DO NOT Work... #413

Closed serenat96 closed 3 years ago

serenat96 commented 3 years ago

Hi David,

When I tried all methods that returned tiktoks under a hashtag, a music seed, on the discover list or on trending, they did not work all at once. The returned error is "Tiktok sending invalid JSON back''/"Empty response". I was wondering if you may know what's going on and if you encountered the same issues? Thank you so much for your help!

ziyueluo commented 3 years ago

Same issue here

serenat96 commented 3 years ago

I just tried the new version 3.8.4 but it seems like the above issue was still there. Thought probably Tiktok updated something on its end.

serenat96 commented 3 years ago

I think it worked now, though I did not really know why. You may close the issue now. Sorry for the inconvenience :(

davidteather commented 3 years ago

No worries! The new package update was probably the fix I imagine. You may want to try out the api = TikTokApi.get_instance(use_test_endpoints=True)

ziyueluo commented 3 years ago

Thanks David! Also, could we use selenium when downloading tiktok videos? I asked in the thread #411 and was wondering if there might be a fix.

yswtrue commented 3 years ago

byHashtag still not works