Skip to main content

YouTube Video Thumbnail

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

Installation

pip3 install ytthumb

Usage

Get Thumbnail

import ytthumb

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

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

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

Download Thumbnail

import ytthumb

ytthumb.download_thumbnail(
    video='https://youtu.be/rokGy0huYEA',
    filename='thumbnail.jpg',  # optional
    quality='sd'               # optional
    directory="thumbnails"     # optional
)
# Downloaded thumbnail will be in the 'thumbnail.jpg' file in 'thumbnails' directory

Get Qualities

import ytthumb

print(ytthumb.VALID_QUALITIES)
# return dictionary of qualities with full form

Output:

{
    "sd": "Standard Quality",
    "mq": "Medium Quality",
    "hq": "High Quality",
    "maxres": "Maximum Resolution",
}

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ytthumb-2.0.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ytthumb-2.0.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file ytthumb-2.0.0.tar.gz.

File metadata

  • Download URL: ytthumb-2.0.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ytthumb-2.0.0.tar.gz
Algorithm Hash digest
SHA256 703dc1caca3336da4e42c44899ab76d3cbe9997a18b8f29b8aeae93b78782254
MD5 2eca82d76af14b2393138bf94a144c66
BLAKE2b-256 f4b09a4ca1a6f6a949743016ecd06762cbef5b3d6251a12f6bb572d4de89f672

See more details on using hashes here.

File details

Details for the file ytthumb-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: ytthumb-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ytthumb-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bae17d36f27de1e6c1c26b101afd0e8083a798b6d8b0714ee751f1251bf50aa4
MD5 461b7ca7ff05b865b505ef2e964a5715
BLAKE2b-256 edd1c39db1690257a1c2d406b413fa5840e26629f23484e834b260be671e1379

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 files

1.4.6

2 files

1.4.5

2 files

1.4.4

2 files

1.4.3

2 files

1.4.2

2 files

1.4.1

2 files

1.4.0

2 files

1.3.9

2 files

1.3.8

2 files

1.3.7

2 files

1.3.6

2 files

1.3.5

2 files

1.3.4

2 files

1.3.3

2 files

1.3.2

2 files

1.3.1

2 files

1.2.2

2 files

1.2.1

2 files

1.2.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page