
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
A Twitch Wrapper for Python 3.6 or higher for the new Twitch API with its App Token
pip install twitch-MagicaFreak
To start a session with Twitch you just use:
from twitch.twitch import Twitch
async with Twitch("client_id","client_secret") as example_name:
Now to get something from the Twitch App you just use your name and the function you want. As an example:
from twitch.twitch import Twitch
async with Twitch("client_id","client_secret") as example_name:
await example_name.user('MagicaFreak')
##Functions All the functions that exist at the moment
It gets the user by his username
from twitch.twitch import Twitch
async with Twitch("client_id","client_secret") as example_name:
await example_name.user('Username')
This can be done for multiple users too
from twitch.twitch import Twitch
async with Twitch("client_id","client_secret") as example_name:
await example_name.user(['Username1', 'Username2', 'Username3'])
And it returns a list of users that you searched for
It gets the stream that is live by the name of the streamer
from twitch.twitch import Twitch
async with Twitch("client_id","client_secret") as example_name:
await example_name.stream('Streamername')
This can be done for multiple streams too
from twitch.twitch import Twitch
async with Twitch("client_id","client_secret") as example_name:
await example_name.stream(['Streamername1', 'Streamername2', 'Streamername3'])
And it returns a list of streams that you searched for
It gets the tag by the tag ID
from twitch.twitch import Twitch
async with Twitch("client_id","client_secret") as example_name:
await example_name.tag('tag ID')
This can be done for multiple tags too
from twitch.twitch import Twitch
async with Twitch("client_id","client_secret") as example_name:
await example_name.tag(['tagID1', 'tagID2', 'tagID3'])
And it returns a list of tags that you searched for
It gets the game by its name
from twitch.twitch import Twitch
async with Twitch("client_id","client_secret") as example_name:
await example_name.game('game name')
This can be done for multiple games too
from twitch.twitch import Twitch
async with Twitch("client_id","client_secret") as example_name:
await example_name.game(['gamename1', 'gamename2', 'gamename3'])
And it returns a list of the games that you searched for
It gets the top games of the moment
from twitch.twitch import Twitch
async with Twitch("client_id","client_secret") as example_name:
await example_name.top_games()
And it returns a list of the top games
FAQs
A Twitch Wrapper for Python 3.6 or higher for the new Twitch API
We found that twitch-MagicaFreak demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.