Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

sudoguy/tiktok_bot

Repository files navigation

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+