A youtube video link or id to video thumbnail python module
Project description
Made with Python3
(C) @FayasNoushad
Copyright permission under MIT License
License -> https://github.com/FayasNoushad/Youtube-Video-Thumbnail/blob/main/LICENSE
Installation
pip install YTThumb
Usage
import ytthumb
# Basic Usage
thumbnail = ytthumb.thumbnail('https://youtu.be/rokGy0huYEA')
print(thumbnail)
# => https://img.youtube.com/vi/rokGy0huYEA/sddedault.jpg
# Advanced Usage
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"
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.5.tar.gz
(2.3 kB
view hashes)