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.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

twitch_thumbnail-1.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file twitch-thumbnail-1.1.0.tar.gz.

File metadata

  • Download URL: twitch-thumbnail-1.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for twitch-thumbnail-1.1.0.tar.gz
Algorithm Hash digest
SHA256 3f79cd3cdd5dcdca449a85b917f505913dc7f9841c37c73e7f39be055b106281
MD5 bce0dffef3e83b0edcd46e1ad6b04718
BLAKE2b-256 e49b41d363f41fc5bde86f37936710f1f5d9217976d55fb181ed35d19417a7c8

See more details on using hashes here.

File details

Details for the file twitch_thumbnail-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for twitch_thumbnail-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 678937c05a1f90db5f0ecf9167ad07839bac21f7483ffbb66e6ede6ee0f0b890
MD5 bdee7fe7a0ecfa2f56f59da12bd565e3
BLAKE2b-256 f9bdafed9bdbfd9bf991bb482ca24597968bcdf1086f104616b8313691cc5eba

See more details on using hashes here.

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