amemv-crawler icon indicating copy to clipboard operation
amemv-crawler copied to clipboard

TikTok Trending page

Open toyinstark opened this issue 5 years ago • 4 comments

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

toyinstark avatar May 03 '19 01:05 toyinstark

hey, did you ever find a solution for this? I got the same issue.

LEGENDFF avatar May 20 '19 23:05 LEGENDFF

Having the same issue

ethanzh avatar Jul 17 '19 22:07 ethanzh

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

echokk11 avatar Sep 25 '19 08:09 echokk11

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

muneeb331 avatar Dec 03 '19 13:12 muneeb331