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.1.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for twitch_info-2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bffc3fbf6f725e335be6cb6a6578b7a6b565f9a04ff801b36c58152b73269945 |
|
MD5 | c343cb6b2b0a546523da5c7428229d70 |
|
BLAKE2b-256 | 097704607bbdc20cdd558ff1e419712b5e605751a2213bfc187648dd61ad11c7 |