Tik Tok API


Keywords
tiktok, bot, api, wrapper, tiktokbot, tiktok-api, tiktok-bot, tiktok-scraper
License
MIT
Install
pip install tiktok-bot==0.6.4

Documentation

This project is no longer under development.

A NEW project is being developed here: sudoguy/tiktokpy


tiktok-bot

The most intelligent TikTok bot for Python.

Build Status Downloads Package version

Note: This project should be considered as an "alpha" release.


Quickstart

from tiktok_bot import TikTokBot

bot = TikTokBot()

# getting your feed (list of posts)
my_feed = bot.list_for_you_feed(count=25)

popular_posts = [post for post in my_feed if post.statistics.play_count > 1_000_000]

# extract video urls without watermark (every post has helpers)
urls = [post.video_url_without_watermark for post in popular_posts]

# searching videos by hashtag name
posts = bot.search_posts_by_hashtag("cat", count=50)

Installation

Install with pip:

pip install tiktok-bot

tiktok-bot requires Python 3.6+