YouTube video thumbnail download
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"
)
print(thumbnail)
# => https://img.youtube.com/vi/rokGy0huYEA/sddedault.jpg
# Available Qualities
print(ytthumb.qualities())
# => ["sd", "mq", "hq", "maxres"]
# Download Thumbnail
ytthumb.download_thumbnail(
video,
name='thumbnail.jpg'
)
# => Download thumbnail in '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.8.tar.gz
(2.5 kB
view hashes)