Open toyinstark opened 5 years ago
hey, did you ever find a solution for this? I got the same issue.
Having the same issue
the _signature is str(user_id + type) right now.
a snippet in tiktok.com's js
u.a.get(d.fetchVideoFeed, {
secUid: y,
id: o,
type: i,
count: s,
minCursor: p,
maxCursor: g,
_signature: o + i,
utmSource: b.utm_source,
utmCampaign: b.utm_campaign,
utmMedium: b.utm_medium,
shareUid: M
}, n);
btw the d.fetchVideoFeed is share/item/list
which is the request url about getting the videosList with the author.
raw js address https://s16.tiktokcdn.com/tiktok/falcon/static/js/9cc954f7.js
I am still facing the same issue. I cannot generate the signature. how do you generate it?
for the following profile https://www.tiktok.com/@leaelui
would it be self.generateSignature(str("MS4wLjABAAAAi7VjI-nbgKPRfTRc8qFmDuPyK3baTWHNsfeb0nIIuURBfvA8aBUt6fZeOntgR1_z" + "1"))
here (assuming) userid is MS4wLjABAAAAi7VjI-nbgKPRfTRc8qFmDuPyK3baTWHNsfeb0nIIuURBfvA8aBUt6fZeOntgR1_z and type is 1
or userid is 16631823
I have tried both and could not get them to work. Please any help will be appreciated
I tried crawling https://www.tiktok.com/en/trending Am having problems with the signature. i used "5" (which is the type parameter) as the value for user_id in self .generateSignature( str (user_id)) i also used the same ua for both request and encryption.
The _signature generated is always wrong!!. please help