Statstok
A simple python script that scrapes tiktok account's likes and followers using bs4 and requestsFunctions
get_followers(username) will return the username's follower count
get_likes(username) will return the username's total like count
Dependancies
Statstok depends on bs4 and requests
Installation
To install and add this to your project, simply clone foo statstok.py bar into the directory of your project
Make sure to add from statstok import get_followers or from statstok import get_likes before you start using statstok
Examples
Discord Bot
import discord
from discord.ext import commands
from statstok import get_followers
bot = commands.Bot(command_prefix="!")
@bot.command()
async def followers(ctx, username):
await ctx.send(f"That user has {get_followers(username)} followers")
bot.run("TOKEN")
Help and Support
If you need help with Statstok, you can either join the discord or submit an issue request
Release files for statok 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| statok-1.0.0.tar.gz | 2.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| statok-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.6 kB
Release files / statok-1.0.0.tar.gz
| Download URL | statok-1.0.0.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dfd6c8f513d7d0ebdb9586f58b24a39ce22753d19ddf99dc4545ec34fd568d4b
|
|
BLAKE2b-256 checksum How to use checksums |
15fcb6dbc2f275af1e7c9f80c8c7f9dec09f23168bd4187af0ad942ab2c72b87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Release files / statok-1.0.0-py3-none-any.whl
| Download URL | statok-1.0.0-py3-none-any.whl |
|---|---|
| Size | 2.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4985418b44ccd551a66fb86cc7d46461cb4651bd542850c12d27ecd927c97c21
|
|
BLAKE2b-256 checksum How to use checksums |
9ecb1956fe43cbfaf0dab8bcda5c4ecb67a5a53aff784de56bb22965df946eb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|