New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tiktokapipy

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiktokapipy

Asyncio TikTok data scraping tool

  • 0.2.4.post2
  • PyPI
  • Socket score

Maintainers
1

TikTokPy

PyPI Python Version 3.8+ License
Unit Tests Status Documentation Status

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:

SynchronousAsynchronous
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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc