TikTok (CDSW): Difference between revisions

From CommunityData
(Created page with "This is a tutorial in progress! Nothing to see here (yet).")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
This is a tutorial in progress! Nothing to see here (yet).
This is a tutorial in progress!  
 
This tutorial was inspired by the writeup at [https://towardsdatascience.com/how-to-collect-data-from-tiktok-tutorial-ab848b40d191 Towards Data Science] -- but please note that the code on that site is out of date, and docs for TikTokApi are at [https://davidteather.github.io/TikTok-Api/docs/TikTokApi/tiktok.html the github] for TikTokApi. Also please note that the only items you can fetch with the API are what's available without a login.
 
* Install a python library that will help you put your API calls together:
  pip3 install TikTokApi
* Install a browser library to help make your queries look like a web browser as TikTok expects:
  playwright install
* Check out the demo file we created
* Set up your own project using the demo as a model.
 
Answer some basic questions:
* How many followers
 
 
If you are venturing further into a project using the tiktok api, you might find it useful to set up a developer account. This is a quick round trip with a pin via your e-mail.

Latest revision as of 22:17, 25 October 2022

This is a tutorial in progress!

This tutorial was inspired by the writeup at Towards Data Science -- but please note that the code on that site is out of date, and docs for TikTokApi are at the github for TikTokApi. Also please note that the only items you can fetch with the API are what's available without a login.

  • Install a python library that will help you put your API calls together:
 pip3 install TikTokApi
  • Install a browser library to help make your queries look like a web browser as TikTok expects:
 playwright install
  • Check out the demo file we created
  • Set up your own project using the demo as a model.

Answer some basic questions:

  • How many followers


If you are venturing further into a project using the tiktok api, you might find it useful to set up a developer account. This is a quick round trip with a pin via your e-mail.