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
- Execute the tool from a terminal
tvod
-
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 is1234567890 -
It will ask at which resolution watch
-
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 infovideo_info_error_handler: is a function (a lambda is good) that will be called if something goes wrong- returns the
urlto pass to the fuctionget_video_urland a dictionary of resolutions from which to choss one
get_video_url(animated_preview_url, resolution_name)animated_preview_url: is the returned url byget_video_inforesolution_name: is the key of the chosen resolution from the dictionary returned byget_video_info- return the url to the video at the chosen resolution
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdecf925da8a37cd8486531e3abc01c4a3f06e1a8932fa6d5700c31bac89cdd1
|
|
| MD5 |
37cbd5da533bce985b30a1c65c55dacd
|
|
| BLAKE2b-256 |
6ff36464501bf4bcc64974d56d97af94b3a2327728c0d98894e6b9142fadeb40
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6570c4d18dbee726ef3d0594e565c21bd2485cfa42577728ac635333302e55fd
|
|
| MD5 |
b6c317faa191672c7f454fdab8efcbf2
|
|
| BLAKE2b-256 |
50ccd3afa32fb26902b1cf56ac1b80fe13eb5ca992f9f2dc8052e2f25bbfa834
|