Skip to main content

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 requests

Functions

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


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)

Uploaded Source

Built Distribution

statok-1.0.0-py3-none-any.whl (2.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page