sudoguy / tiktok_bot

New tiktok bot on https://github.com/sudoguy/tiktokpy
https://github.com/sudoguy/tiktokpy
MIT License
134 stars 36 forks source link
tiktok tiktok-api tiktok-bot tiktok-scraper tiktokbot

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+