Download Twitch channel thumbnail
Project description
twitch-thumbnail
Download Twitch channel thumbnail
Install
pip install twitch-thumbnail
Require FFMPEG
Usage
synchronous
from twitch_thumbnail import download_thumbnail
download_thumbnail("woowakgood", "thumbnail.png")
asynchronous
import asyncio
from twitch_thumbnail.asynchronous import download_thumbnail
async def main():
await download_thumbnail("woowakgood", "thumbnail.png")
asyncio.run(main())
Twitch OAuth Token
https://twitch.tv -> Devtools Console
document.cookie.split("; ").find((item) => item.startsWith("auth-token="))?.split("=")[1];
download_thumbnail("woowakgood", "thumbnail.png", twitch_oauth="your-personal-oauth-token")
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-thumbnail-1.1.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for twitch_thumbnail-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 062bfa2c2f56f178c827e45a99ea11081696210cfb32f2c0b266bb11501c1a34 |
|
MD5 | 679d9ec03685a81b15e67eaca92fefb3 |
|
BLAKE2b-256 | 7668aa550c2f5312b22a579575b5c1c2665de1ffa06396f72888e471e51c2621 |