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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file statok-1.0.0.tar.gz.

File metadata

  • Download URL: statok-1.0.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for statok-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dfd6c8f513d7d0ebdb9586f58b24a39ce22753d19ddf99dc4545ec34fd568d4b
MD5 56a7027e83c92e89648d3818845ec57c
BLAKE2b-256 15fcb6dbc2f275af1e7c9f80c8c7f9dec09f23168bd4187af0ad942ab2c72b87

See more details on using hashes here.

File details

Details for the file statok-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: statok-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for statok-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4985418b44ccd551a66fb86cc7d46461cb4651bd542850c12d27ecd927c97c21
MD5 64581906ec2ce39b4b15398e4b73b119
BLAKE2b-256 9ecb1956fe43cbfaf0dab8bcda5c4ecb67a5a53aff784de56bb22965df946eb5

See more details on using hashes here.

Supported by

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