Skip to main content

A simple module to get statistics of a tiktok account

Project description

Statstok

<center> A simple python script that scrapes tiktok account's likes and followers using bs4 and requests </center>

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 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page