Skip to main content

Get information about a twitch channels and streams

Project description

Twitch Informations

forthebadge made-with-python GitHub repo size License

Get informations about a streamer from twitch.tv.

Install the package

pip install twitch-info

Exemple

from twitch_info import get_user_id, get_stream, get_access_token

# To get client_id and client_secret -> https://youtu.be/JK06TumS6ho

client_id = "<CLIENT ID>"
client_secret = "<CLIENT SECRET>" 


acces_token = get_access_token(client_id=client_id, client_secret=client_secret)

user_id = get_user_id(user_name="<CHANNEL_NAME>", client_id=client_id, acces_token=acces_token)

stream = get_stream(user_id=user_id, client_id=client_id, acces_token=acces_token)

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

twitch-info-2.4.5.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file twitch-info-2.4.5.tar.gz.

File metadata

  • Download URL: twitch-info-2.4.5.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for twitch-info-2.4.5.tar.gz
Algorithm Hash digest
SHA256 3b24dfd3ab962aab3c8f99ec5d6b5d315c3b137b1c9ea05fecfc3f200fceeeb6
MD5 b3f06e5aa98b75704ef0000ee74ab49f
BLAKE2b-256 56d1fceb63043310fe20764f11a627c03218b44031ae52b8c79581403b6cabe7

See more details on using hashes here.

Supported by

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