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.3.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for twitch_info-2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d9e56fcf3bf3c2b52eaf5610f5f6c874a6a4627333cfc3bfdfda06d5569e9d8 |
|
MD5 | 5626bf5ac591aa55056373a3b2530508 |
|
BLAKE2b-256 | 46771fd371d1829832ea3d77e562a18f0097c26b71f04b7b3c0f249fef58b50b |