Skip to main content

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


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)

Uploaded Source

Built Distribution

YTThumb-1.3.5-py3-none-any.whl (2.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page