carcabot / tiktok-signature

Generate tiktok signature token using node
733 stars 283 forks source link

Trending example returns list of users instead of list of videos #191

Closed tokjii closed 11 months ago

tokjii commented 1 year ago

Describe the bug https://github.com/carcabot/tiktok-signature/blob/master/examples/trending.js doesn't do what the previous Trending example did. Instead of a list of popular videos, we are now seeing a response that includes nothing but a list of profiles or music tracks.

The response looks like this:

image

when signing a URL that is like https://www.tiktok.com/node/share/discover?....

When doing the https://m.tiktok.com/api/post/item_list/... from the older https://github.com/carcabot/tiktok-signature/blob/master/examples/trending.py I see an empty response.

Not sure if I'm doing everything correctly but what is the "current" URL to use and does it work for you?

This time, even on the real website, I'm also unable to find any requests that look like the one we're after.

If fields below will be empty then issue will be Ignored and Closed

To Reproduce

I may add that I was not able to run the example normally due to some issues with my local Node installation (in case that means something) but you see the "non video feed" even when you manually navigate to https://www.tiktok.com/node/share/discover without any args, it's the same list of users and music tracks instead of videos unless I am missing something

carcabot commented 1 year ago

You can check user-videos.js is exactly the older trending.py

tokjii commented 1 year ago

Thank you for responding, but where do we get the SEC_UID from in this example? https://t.tiktok.com/api/user/detail/?aid=1988&uniqueId=username&language=it returns an empty page, even when logged in?