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)
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.0.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for twitch_info-2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3d073c9ae6104fa7cc75ad0a9c53b4bb219900c45b6c59c53cf5ef5ebff173e |
|
MD5 | 74120f327011a92dc6b1d0549826f4e9 |
|
BLAKE2b-256 | 7adfbd28b486154e22dbf6df27c1e3a8e5778130d98674f590493e94ed4dba57 |