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
[![forthebadge made-with-python](http://ForTheBadge.com/images/badges/made-with-python.svg)](https://www.python.org/)
![GitHub repo size](https://img.shields.io/github/repo-size/feytus/twitch-info?style=for-the-badge&logo=appveyor)
[![License](https://img.shields.io/github/license/feytus/twitch-info?style=for-the-badge)](https://github.com/feytus/twitch-info/blob/master/LICENSE)
Get informations about a **streamer** from **twitch.tv** and get **notified on discord**.
## Install the package
``pip install twitch-info``
## Exemple
```python
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.2.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for twitch_info-2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b6edfd690a762639b5d83c87898239bcb6eaee67a460201f17200db1106e3a1 |
|
MD5 | 8d409a0a11dc1291d21bbd9eb1b2f3f6 |
|
BLAKE2b-256 | 71518e5e12e6f8064800e6b025f2a7557d3d3bc634092768522d7453ccd008e8 |