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

[BUG] - Whole Tiktok api broken ? #1069

Open cyph-zz opened 1 year ago

cyph-zz commented 1 year ago

Dear all,

I tried the trending API and got an exception on this playwright._impl._api_types.Error: TypeError: Cannot read properties of undefined (reading 'frontierSign')

investigating the code it is located here File "/Users/XXXXXXXXX/anaconda3/lib/python3.11/site-packages/TikTokApi/api/trending.py", line 43, in videos resp = await Trending.parent.make_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

A call on an URL does not work anymore : the URL is https://www.tiktok.com/api/recommend/item_list/ and when accessing it directly : I have a logging issue : status 10201

{"log_pb":{"impr_id":"xxxxxxxxxxxxxxxxxxxx"},"statusCode":10201,"statusMsg":"","status_code":10201,"status_msg":""}

Is the old API closed ? Tiktokapi may be adapted to a login process ?

Thanks

fentezi commented 1 year ago

I have the same error, only when I receive just a video

glenn-jocher commented 1 year ago

Same issue.

keisanng commented 1 year ago

Seems like it...

LGCN-Q commented 11 months ago

same like it .

aterop commented 11 months ago

It worked for me after changing await api.create_sessions(ms_tokens=[ms_token], num_sessions=1, sleep_after=3 to await api.create_sessions(ms_tokens=[ms_token], num_sessions=1, sleep_after=3, headless=False)

Adding "headless=False" will show the browser window but it's the only thing working right now.

I hope this is the problem you mean