YouTube video thumbnail downloader
Project description
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",
}
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
ytthumb-2.0.0.tar.gz
(3.5 kB
view details)
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 ytthumb-2.0.0.tar.gz.
File metadata
- Download URL: ytthumb-2.0.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
703dc1caca3336da4e42c44899ab76d3cbe9997a18b8f29b8aeae93b78782254
|
|
| MD5 |
2eca82d76af14b2393138bf94a144c66
|
|
| BLAKE2b-256 |
f4b09a4ca1a6f6a949743016ecd06762cbef5b3d6251a12f6bb572d4de89f672
|
File details
Details for the file ytthumb-2.0.0-py3-none-any.whl.
File metadata
- Download URL: ytthumb-2.0.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bae17d36f27de1e6c1c26b101afd0e8083a798b6d8b0714ee751f1251bf50aa4
|
|
| MD5 |
461b7ca7ff05b865b505ef2e964a5715
|
|
| BLAKE2b-256 |
edd1c39db1690257a1c2d406b413fa5840e26629f23484e834b260be671e1379
|