carcabot / tiktok-signature

Generate tiktok signature token using node
755 stars 286 forks source link

always the same key #11

Closed toxicity1985 closed 4 years ago

toxicity1985 commented 4 years ago

Hello,

When i try to generate a signature, i have always the same key: "s0Ju9AAgEBDs0t-zd4dzFLNCb-AAO0V"

Do you have some information on how it works.

Thanks a lot.

carcabot commented 4 years ago

Let me know what command do you use (copy/paste) when generating the signature.

You can read other issues, maybe someone had a similar one.

Ichtuus commented 4 years ago

Hello,

Tell me, what is url to copy past into the node browser.js "what url" ? I try to past this url => https://www.tiktok.com/@arianalee.909?lang=fr but the key is doesn't correct

toxicity1985 commented 4 years ago

Can you explain the process. If I understand well we have to generate the url through browser.js and then make the call ?

carcabot commented 4 years ago

The signature cannot be generated directly for urls like this https://www.tiktok.com/@arianalee.909. You have to identify the service url for each different user.

Check this attached image to find out how to do that.

image

According to @Ichtuus provided link, you should generate signature for this url :

https://m.tiktok.com/share/item/list?secUid=MS4wLjABAAAAdLj557F-KHKrpcyxQDpZMBvRYSX-VnTEv6oKxa0MtGNu0edcyNbTDKek9DWF-h1C&id=6747063137168344069&type=1&count=30&minCursor=0&maxCursor=0&shareUid=&lang=fr


NOTE

I have stripped the &_signature=.... from this url

Ichtuus commented 4 years ago

That doesn't work for me... I create a signature with your advice, and i have in output a empy json

Can you explain the good process for get datas pls ?

carcabot commented 4 years ago

Probably you are not paying too much attention at details.

You have to use the same user-agent as in trending.py file when requesting.

Ichtuus commented 4 years ago

Okay, sorry it's good for me thanks a lot for your patience!