Skip to main content

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)

Uploaded Source

Built Distribution

twitch_thumbnail-1.1.1-py3-none-any.whl (4.9 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