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

Uploaded Source

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