Skip to main content

A package to retrieve Twitch VOD

Project description

Twitch VOD

Tool to retrieve Twitch's VOD from the video ID

Install

This package is published on PiPy at this link. Up to you choose how to install it.

Use as is

  1. Execute the tool from a terminal
tvod
  1. It will ask the video ID (you can find it in twitch's video page). In this (https://www.twitch.tv/videos/1234567890) case the ID is 1234567890

  2. It will ask at which resolution watch

  3. It will use your browser to watch it.

Use as package

You can import it in your python script. The available methods are:

  • get_video_info(video_id, video_info_error_handler)
    • video_id: is the id of the twich vod you want to retrieve the info
    • video_info_error_handler: is a function (a lambda is good) that will be called if something goes wrong
    • returns the url to pass to the fuction get_video_url and a dictionary of resolutions from which to choss one
  • get_video_url(animated_preview_url, resolution_name)
    • animated_preview_url: is the returned url by get_video_info
    • resolution_name: is the key of the chosen resolution from the dictionary returned by get_video_info
    • return the url to the video at the chosen resolution

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

tvod-2.0.0.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tvod-2.0.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file tvod-2.0.0.tar.gz.

File metadata

  • Download URL: tvod-2.0.0.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.11.2 Darwin/22.3.0

File hashes

Hashes for tvod-2.0.0.tar.gz
Algorithm Hash digest
SHA256 cdecf925da8a37cd8486531e3abc01c4a3f06e1a8932fa6d5700c31bac89cdd1
MD5 37cbd5da533bce985b30a1c65c55dacd
BLAKE2b-256 6ff36464501bf4bcc64974d56d97af94b3a2327728c0d98894e6b9142fadeb40

See more details on using hashes here.

File details

Details for the file tvod-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: tvod-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.11.2 Darwin/22.3.0

File hashes

Hashes for tvod-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6570c4d18dbee726ef3d0594e565c21bd2485cfa42577728ac635333302e55fd
MD5 b6c317faa191672c7f454fdab8efcbf2
BLAKE2b-256 50ccd3afa32fb26902b1cf56ac1b80fe13eb5ca992f9f2dc8052e2f25bbfa834

See more details on using hashes here.

Supported by

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