Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Use TikTok Transcript API with Python

This example calls the Apify Actor apple_yang/tiktok-transcripts-scraper with the official Apify Python API client.

Setup

From the repository root:

python -m venv .venv
source .venv/bin/activate
pip install -r examples/python/requirements.txt
cp .env.example .env

Set APIFY_TOKEN in .env or your shell environment.

Run

python examples/python/single_url.py

You can also pass a URL directly:

python examples/python/single_url.py "https://www.tiktok.com/@foxfamilyguy/video/7587841579029679392"

The full response is saved to:

sample-output/generated/python-single-url-response.json