Tool for automated TikTok interactions.
Project description
TikTokPy
Tooling that automates your social media interactions to “farm” Likes and Followers on TikTok
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tiktokpy-0.9.4.tar.gz
(12.0 kB
view details)
Built Distribution
tiktokpy-0.9.4-py3-none-any.whl
(15.7 kB
view details)
File details
Details for the file tiktokpy-0.9.4.tar.gz
.
File metadata
- Download URL: tiktokpy-0.9.4.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.0 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c9c94d0ff1b1977b2399d3faecfd559c5674f6e094d44e8597ec0c34b3c8506 |
|
MD5 | b3c72166593e1488025d5db3898771e0 |
|
BLAKE2b-256 | 7451e5eb6f6fe0d8838bd74191fd9fa76cf953f070ea08e34a946013c18d1251 |
File details
Details for the file tiktokpy-0.9.4-py3-none-any.whl
.
File metadata
- Download URL: tiktokpy-0.9.4-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.0 Linux/5.15.0-1041-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f220b323f29e649ca16d15ad63aa62ca9794683310859a650488a5e506cc80e0 |
|
MD5 | b1970cba596613970015cccddb0a82d8 |
|
BLAKE2b-256 | 1a88e8858e69ddf34a02c0f6da41462569008c939251720c89dc610fc4ac48c4 |