Get information about a twitch channels and streams
Project description
Twitch Informations
Get informations about a streamer from twitch.tv and get notified on discord.
Install the package
pip install twitch-info
Exemple
from twitch_info import get_user_id, get_stream
acces_token = "<ACCES TOKEN>"
client_id = "<CLIENT ID>"
headers = {
'Accept': 'application/vnd.twitchtv.v5+json',
'Client-ID': client_id,
'Authorization': 'OAuth ' + acces_token,
}
user_id: int = get_user_id("<CHANNEL NAME>", acces_token, client_id)
user_info: dict = get_stream(user_id, headers)
Twitch Informations
Get informations about a streamer from twitch.tv and get notified on discord.
Install the package
pip install twitch-info
Exemple
from twitch_info import get_user_id, get_stream
acces_token = "<ACCES TOKEN>"
client_id = "<CLIENT ID>"
headers = {
'Accept': 'application/vnd.twitchtv.v5+json',
'Client-ID': client_id,
'Authorization': 'OAuth ' + acces_token,
}
user_id: int = get_user_id("<CHANNEL NAME>", acces_token, client_id)
user_info: dict = get_stream(user_id, headers)
Project details
Release history Release notifications | RSS feed
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.tar.gz
(3.1 kB
view hashes)