YouTube Video Thumbnail
A simple youtube video thumbnail downloader with more qualities via youtube video link or id.
Installation
pip3 install ytthumb
Usage
Get Thumbnail
import ytthumb
video = 'https://youtu.be/rokGy0huYEA' # link/id
# Basic Usage
print(ytthumb.get_thumbnail_url(video))
# => returns thumbnail link
# Advanced Usage
thumbnail = ytthumb.get_thumbnail_url(
video=video,
quality="sd" # Not required
)
print(thumbnail)
# returns thumbnail link
Download Thumbnail
import ytthumb
ytthumb.download_thumbnail(
video='https://youtu.be/rokGy0huYEA',
filename='thumbnail.jpg', # optional
quality='sd' # optional
directory="thumbnails" # optional
)
# Downloaded thumbnail will be in the 'thumbnail.jpg' file in 'thumbnails' directory
Get Qualities
import ytthumb
print(ytthumb.VALID_QUALITIES)
# return dictionary of qualities with full form
Output:
{
"sd": "Standard Quality",
"mq": "Medium Quality",
"hq": "High Quality",
"maxres": "Maximum Resolution",
}
Metadata
Release files for YTThumb 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ytthumb-2.0.0.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ytthumb-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.2 kB
Release files / ytthumb-2.0.0.tar.gz
| Download URL | ytthumb-2.0.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
703dc1caca3336da4e42c44899ab76d3cbe9997a18b8f29b8aeae93b78782254
|
|
BLAKE2b-256 checksum How to use checksums |
f4b09a4ca1a6f6a949743016ecd06762cbef5b3d6251a12f6bb572d4de89f672
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / ytthumb-2.0.0-py3-none-any.whl
| Download URL | ytthumb-2.0.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bae17d36f27de1e6c1c26b101afd0e8083a798b6d8b0714ee751f1251bf50aa4
|
|
BLAKE2b-256 checksum How to use checksums |
edd1c39db1690257a1c2d406b413fa5840e26629f23484e834b260be671e1379
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|