Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 798 Bytes

README1.md

File metadata and controls

37 lines (24 loc) · 798 Bytes

TikTok_famous

TikTok data collection article

TikTok API

Make virtual env:

python3 -m venv venv

Access virtual env:

source venv/bin/activate

Download dependencies:

pip install -r requirements.txt

Produce requirements.txt format:

pip freeze

  • More about virtual environments here

Make kernel for jupyter notebook:

ipython kernel install --name=TikTok

Importing the TikTok API

from TikTokApi import TikTokApi
api = TikTokApi()

I ran into an error when trying to use the api. Run this if error appears.

from TikTokApi.browser import set_async
set_async()