ytdl
Download videos and retrieve metadata from YouTube
Install
- All systems
-
curl cmd.cat/ytdl.sh
- Debian
-
apt-get install python3-pafy - Ubuntu
-
apt-get install python3-pafy - Arch Linux
-
pacman -S python-pafy - Kali Linux
-
apt-get install python3-pafy - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install python3-pafy - Raspbian
-
apt-get install python3-pafy
python3-pafy
Download videos and retrieve metadata from YouTube
Pafy is a Python library for interacting with YouTube from within your Python programs. Its main features include: * Retrieve metadata such as viewcount, duration, rating, author, thumbnail, keywords * Download video or audio at requested resolution / bitrate / format / filesize * Command line tool (ytdl) for downloading directly from the command line * Retrieve the URL to stream the video in a player such as vlc or mplayer * Works with age-restricted videos and non-embeddable videos * Small, standalone, single importable module file (pafy.py) * Select highest quality stream for download or streaming * Download video only (no audio) in m4v or webm format * Download audio only (no video) in ogg or m4a format * Retrieve playlists and playlist metadata
python-pafy
Download videos and retrieve metadata from YouTube
Pafy is a Python library for interacting with YouTube from within your Python programs. It's main features include video/audio download, direct stream url retrieval, querying YouTube video metada and playlist retrieval. Retrieve metadata such as viewcount, duration, rating, author, thumbnail, keywords, download video or audio at requested resolution / bitrate/ format / filesize, command line tool (ytdl) for downloading directly from the command line, retrieve the URL to stream the video in a player such as vlc or mplayer, works with age-restricted videos and non-embeddable videos, small, standalone, select highest quality stream for download or streaming, download audio only (no video) in ogg or m4a format, download video only (no audio) in m4v format.