Skip to content

Did TikTok-Api use Selenium to scrape Tiktok's data? #428

Answered by davidteather
novemberdude asked this question in Q&A
Discussion options

You must be logged in to vote

I do use a headless browser (similar to selenium or selenium if you pass use_selenium=True to the constructor) to generate a signature parameter for the URL. This allows the browser to make that request.

You're able to find this in your own browser if you end up going to one of TikTok's sites on your desktop like #funny and hit f12 on chrome, and go to the network tab in the developer console. From there you can refresh and hit control + f and type in the search box for item_list. This will show you the data TikTok returns from the API.

There's some other strange URL parameters required which the package adds onto and calculates in the case of the _signature parameter.

It does this by lau…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by davidteather
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants