Python MIT

tiktokpy

Tool for automated TikTok interactions

S

sudoguy

Dernière activité 28 sept. 2026
sudoguy/tiktokpy

878

étoiles

165

forks

72

issues ouvertes

tiktoktiktok-apitiktok-pythontiktok-scrapertiktokbot

Ce README est souvent en anglais.

TikTokPy

Tooling that automates your social media interactions to “farm” Likes and Followers on TikTok

Build Status Package version


Quickstart.py

import asyncio
from tiktokpy import TikTokPy


async def main():
    async with TikTokPy() as bot:
        # Do you want to get trending videos? You can!
        trending_items = await bot.trending(amount=5)

        for item in trending_items:
            # ❤️ you can like videos
            await bot.like(item)
            # or unlike them
            await bot.unlike(item)
            # or follow users
            await bot.follow(item.author.username)
            # as and unfollow
            await bot.unfollow(item.author.username)

        # 😏 getting user's feed
        user_feed_items = await bot.user_feed(username="tiktok", amount=5)

        for item in user_feed_items:
            # 🎧 get music title, cover, link, author name..
            print("Music title: ", item.music.title)
            # #️⃣ print all tag's title of video
            print([tag.title for tag in item.challenges])
            # 📈 check all video stats
            print("Comments: ", item.stats.comments)
            print("Plays: ", item.stats.plays)
            print("Shares: ", item.stats.shares)
            print("Likes: ", item.stats.likes)

        # and many other things 😉


asyncio.run(main())

Installation

Install with pip:

pip install tiktokpy

Install browser by playwright

playwright install firefox

Run

To create your cookies and settings.toml file simply run

python quicklogin.py

and then after you login run

python quickstart.py

Projets similaires

The Unofficial TikTok API Wrapper In Python

Pythonapidownload-tiktokshacktoberfest
Ddavidteather
6,7 k étoiles1,2 k

A web scraper for TikTok

Pythondata-collectiontiktoktiktok-api
MMEOMcGill
178 étoiles23

Best TikTok Report Bot on Github / app api with botnet

Pythonpythonreportingtiktok
Xxtekky
299 étoiles121