loadchange / amemv-crawler

🙌Easily download all the videos from TikTok(amemv).下载指定的 抖音(Douyin) 号的视频,抖音爬虫
MIT License
2.39k stars 623 forks source link

TikTok Trending page #127

Open toyinstark opened 5 years ago

toyinstark commented 5 years ago

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

LEGENDFF commented 5 years ago

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

ethanzh commented 5 years ago

Having the same issue

echokk11 commented 5 years ago

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

muneeb331 commented 4 years ago

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