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.

Warnings can be ignored as follows:

import warnings

from tiktokapipy import TikTokAPIWarning

warnings.filterwarnings("ignore", category=TikTokAPIWarning)

Documentation

You can view the full documentation on Read the Docs.


Disclaimer

TikTokPy is in no way affiliated with, authorized, maintained, sponsored or endorsed by TikTok or any of its affiliates or subsidiaries. Use of automated scripts to collect information from or otherwise interact with TikTok and its related services is against TikTok's Terms of Service. Use at your own risk. For educational purposes only.

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.2.0.post2.tar.gz (31.0 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.2.0.post2-py3-none-any.whl (34.6 kB view details)

Uploaded Python 3

File details

Details for the file tiktokapipy-0.2.0.post2.tar.gz.

File metadata

  • Download URL: tiktokapipy-0.2.0.post2.tar.gz
  • Upload date:
  • Size: 31.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for tiktokapipy-0.2.0.post2.tar.gz
Algorithm Hash digest
SHA256 8dd9abc8156965a9ceced22fe216858054daf4890dca5b2d91ef58c71c6c74b2
MD5 9e06355de537d57d3d39f1c134d96320
BLAKE2b-256 99107ee3daf50ca1cdcaa02b256447cfa0952cfa1e6754adb6b8d9491eb9f793

See more details on using hashes here.

File details

Details for the file tiktokapipy-0.2.0.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for tiktokapipy-0.2.0.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 60e488f63c5eec10c2a4ad3f1a568285c8c52f1c168f3043cb00af1773aa8514
MD5 710fc6a6184a84872f4d0fe9dfb8985e
BLAKE2b-256 02ab98fc8721514e6814fae4a64d7c1472c6a6010c10ee13e0ec653352c4a6fd

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