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
Metadata
Release files for tiktokpy 0.9.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tiktokpy-0.9.4.tar.gz | 12.0 kB | Without provenance | Details for tiktokpy-0.9.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tiktokpy-0.9.4-py3-none-any.whl | Python 3 | none | any | Details for tiktokpy-0.9.4-py3-none-any.whl |
Total release size: 27.7 kB
Release files / tiktokpy-0.9.4.tar.gz
| Download URL | tiktokpy-0.9.4.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c9c94d0ff1b1977b2399d3faecfd559c5674f6e094d44e8597ec0c34b3c8506
|
|
BLAKE2b-256 checksum How to use checksums |
7451e5eb6f6fe0d8838bd74191fd9fa76cf953f070ea08e34a946013c18d1251
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.0 Linux/5.15.0-1041-azure
|
Release files / tiktokpy-0.9.4-py3-none-any.whl
| Download URL | tiktokpy-0.9.4-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f220b323f29e649ca16d15ad63aa62ca9794683310859a650488a5e506cc80e0
|
|
BLAKE2b-256 checksum How to use checksums |
1a88e8858e69ddf34a02c0f6da41462569008c939251720c89dc610fc4ac48c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.0 Linux/5.15.0-1041-azure
|
Security for tiktokpy 0.9.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.