Skip to main content

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


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.7.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

YTThumb-1.3.7-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file YTThumb-1.3.7.tar.gz.

File metadata

  • Download URL: YTThumb-1.3.7.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for YTThumb-1.3.7.tar.gz
Algorithm Hash digest
SHA256 ade558f38db15a560c8b2dff6f7a951149d2b9763eda93d8001cf4ff632f3fc7
MD5 7d50b6f6e710446aa44de90ba4dadcc3
BLAKE2b-256 0d2a08085ab815234fa5bab65a3c26860045b42979fece01328063d8ff5a3ff3

See more details on using hashes here.

File details

Details for the file YTThumb-1.3.7-py3-none-any.whl.

File metadata

  • Download URL: YTThumb-1.3.7-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for YTThumb-1.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5fa3f30a41162aa6e75368a037bf2199b31657c53c58e3941db5bd168b13185e
MD5 5bd614d17ba6aaf43eb848f3c9e539da
BLAKE2b-256 f2848bb00fcb43add461f1dea5bd579dbb3a29df37a4ff97f623e8d4d227c018

See more details on using hashes here.

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