Skip to main content

Get information about a twitch channels and streams

Project description

Twitch Informations

forthebadge made-with-python GitHub repo size License

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


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)

Uploaded Source

Built Distribution

twitch_info-2.2-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page