Skip to main content

Asyncio TikTok data scraping tool

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tiktokapipy-0.1.10.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tiktokapipy-0.1.10-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file tiktokapipy-0.1.10.tar.gz.

File metadata

  • Download URL: tiktokapipy-0.1.10.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for tiktokapipy-0.1.10.tar.gz
Algorithm Hash digest
SHA256 90591cfa0e1afc5d12672c6681ca8e198cdb1e36edbc924624fc3d1234bc6bf8
MD5 0b8e825694435c04c75f8ce288ec4ae3
BLAKE2b-256 2bc4263dcf74d1e65ba99a30b57062aa122cdc741f7a303fb5f659ee494b5aec

See more details on using hashes here.

File details

Details for the file tiktokapipy-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: tiktokapipy-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for tiktokapipy-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 0b387cdb9520ea2a422d13fd5e0700ac637b5c996eb828e1fe27d303df2ee1d6
MD5 68c4e7020b30c3097345f114edfbea65
BLAKE2b-256 78ddf2fb4db1fd12b1644bfaf9d5327234a3033078fc4ecdb93224863fc4f6b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page