liechtym / TikTokPy

Extract data from TikTok without needing any login information or API keys.

Home Page:https://pypi.org/project/tiktokapipy/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TikTokPy

Extract data from TikTok without needing any login information or API keys.

Table of Contents

Getting Started

Installation

Install the tiktokapipy package (or add it to your project requirements) and set up Playwright:

pip install tiktokapipy
python -m playwright install

Quick Start Guide

TikTokPy has both a synchronous and an asynchronous API. The interfaces are the same, but the asynchronous API requires awaiting of certain functions and iterators.

Both APIs must be used as context managers. To get video information in both APIs:

Synchronous Asynchronous
from tiktokapipy.api import TikTokAPI

with TikTokAPI() as api:
    video = api.video(video_link)
    ...
from tiktokapipy.async_api import AsyncTikTokAPI

async with AsyncTikTokAPI() as api:
    video = await api.video(video_link)
    ...

More examples, including how to download videos and slideshows, can be found in the documentation.

Documentation

You can view the full documentation on Read the Docs.

About

Extract data from TikTok without needing any login information or API keys.

https://pypi.org/project/tiktokapipy/

License:MIT License


Languages

Language:Python 100.0%