A youtube video link or id to video thumbnail python package.
Project description
Made with Python3
(C) @FayasNoushad
Copyright permission under MIT License
License -> https://github.com/FayasNoushad/Youtube-Video-Thumbnail/blob/main/LICENSE
Installation
pip3 install ytthumb
Usage
Basic Usage
import ytthumb
thumbnail = ytthumb.thumbnail(
video="https://youtu.be/rokGy0huYEA"
)
print(thumbnail)
# => https://img.youtube.com/vi/rokGy0huYEA/sddedault.jpg
Advanced Usage
import ytthumb
thumbnail = ytthumb.thumbnail(
video="https://youtu.be/rokGy0huYEA",
quality="sd"
)
"""
Available qualities
- sd - Standard Quality
- mq - Medium Quality
- hq - High Quality
- maxres - Maximum Resolution
"""
print(thumbnail)
# => https://img.youtube.com/vi/rokGy0huYEA/sddedault.jpg
download_thumbnail(video, name='thumbnail.jpg', quality='sd')
# => For download thumbnail "thumbnail.jpg"
Help
import ytthumb
help = help(ytthumb.thumbnail)
print(help)
# => For help
Credits
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-1.3.2.tar.gz
(2.4 kB
view details)
Built Distribution
File details
Details for the file YTThumb-1.3.2.tar.gz
.
File metadata
- Download URL: YTThumb-1.3.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7824502069d0a9e88bf3b3b6e3c2a1125f72f804067ea634d5f2bae6db95099 |
|
MD5 | 81c79607a3e5394b2c8e492d512269da |
|
BLAKE2b-256 | d47a27efde56fd48b9df3572bafd8a6af15343d78e03a5606b13cf81c0443ff6 |
File details
Details for the file YTThumb-1.3.2-py3-none-any.whl
.
File metadata
- Download URL: YTThumb-1.3.2-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8c10aae7b975debfb5344d79c1ddaebe4991c8371d231511a5f85ea05f8724d |
|
MD5 | b8271ada46ef2d758cc9a5899b0f741f |
|
BLAKE2b-256 | 248d6c66989744451e2fac5e16134a81e349d991b0e15cee1642ad5476714edd |