Skip to main content

YouTube video thumbnail downloader

Project description

YouTube Video Thumbnail

A simple youtube video thumbnail downloader with more qualities via youtube video link or id.

Installation

pip install YTThumb

Usage

Get Thumbnail

import ytthumb

video = 'https://youtu.be/rokGy0huYEA'  # link/id

# Basic Usage
print(ytthumb.thumbnail(video))
# => returns thumbnail link

# Advanced Usage
thumbnail = ytthumb.thumbnail(
    video=video,
    quality="sd"  # Not required
)
print(thumbnail)
# returns thumbnail link

Get Qualities

import ytthumb

print(ytthumb.qualities())  # json=True (default)
# returns list of qualities with full form as json

print(ytthumb.qualities(json=False))
# returns list of qualities as list

Download Thumbnail

import ytthumb

ytthumb.download_thumbnail(
    video='https://youtu.be/rokGy0huYEA',
    name='thumbnail.jpg',  # Not required
    quality='sd'  # Not required
)
# Download thumbnail in 'thumbnail.jpg'

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

Uploaded Source

Built Distribution

YTThumb-1.4.6-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: YTThumb-1.4.6.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for YTThumb-1.4.6.tar.gz
Algorithm Hash digest
SHA256 c335676c26607297430bb5af264b195acccfb852b605a3bd229ebfe057218c90
MD5 a7be3e2b1483c720a413eeb9f24aecf8
BLAKE2b-256 a5c3b7eeed05bfc3872985f81796016dcb4cbc37db78ce40ab9cb573c8638826

See more details on using hashes here.

File details

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

File metadata

  • Download URL: YTThumb-1.4.6-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for YTThumb-1.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a33259a59a0397f49d24b30723399687af41ba73d503fcd73a58b043a25f442f
MD5 1793430031cfe47a147c00b2fc8799bc
BLAKE2b-256 dad03a048883a885af265e53414dfd17a1fb58365ac52575aaecdc5723f62d0c

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