https://github.com/FayasNoushad/Youtube-Video-Thumbnail
A youtube video link or id to video thumbnail python package.
https://github.com/FayasNoushad/Youtube-Video-Thumbnail
python thumbnail video youtube
Last synced: 11 months ago
JSON representation
A youtube video link or id to video thumbnail python package.
- Host: GitHub
- URL: https://github.com/FayasNoushad/Youtube-Video-Thumbnail
- Owner: fayasnoushad
- License: mit
- Created: 2021-09-09T12:49:53.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-02-24T01:56:15.000Z (over 2 years ago)
- Last Synced: 2025-07-22T06:56:40.459Z (11 months ago)
- Topics: python, thumbnail, video, youtube
- Language: Python
- Homepage: https://pypi.org/project/ytthumb
- Size: 56.6 KB
- Stars: 13
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```py
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
```py
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
```py
import ytthumb
ytthumb.download_thumbnail(
video='https://youtu.be/rokGy0huYEA',
name='thumbnail.jpg', # Not required
quality='sd' # Not required
)
# Downloaded thumbnail will be in the 'thumbnail.jpg' file in 'thumbnails' directory
```