A simple module to get statistics of a tiktok account
Project description
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
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
statok-1.0.0.tar.gz
(2.4 kB
view hashes)
Built Distribution
statok-1.0.0-py3-none-any.whl
(2.2 kB
view hashes)