Skip to content

youtube-dl

140,026 30 4121 Unlicense
2021.12.17 (16 Dec 2021) Feb 22 2012 230.8 thousand (month)

youtube-dl is a command-line utility and a library for downloading multimedia content from various websites, including YouTube, Vimeo, TikTok, and many others. It supports a wide range of video and audio formats, and can be used to download both live streams and on-demand videos. The library is written in Python and can be easily integrated into other Python projects. Youtube-dl contains open-source scrapers for hundreds of websites and is a great educational source for understanding how to scrape many popular websites.

Highlights


popularcomplex

Example Use


CLI: shell $ youtube-dl 'https://www.youtube.com/watch?t=4&v=BaW_jenozKc' Library: ```python import youtube_dl

define the download options

options = { 'outtmpl': '%(title)s.%(ext)s', 'format': 'best', 'postprocessors': [{ 'key': 'FFmpegExtractAudio', 'preferredcodec': 'mp3', 'preferredquality': '192', }] }

download the video

with youtube_dl.YoutubeDL(options) as ydl: ydl.download(['https://www.youtube.com/watch?v=dQw4w9WgXcQ']) ```

Alternatives / Similar


56,813 0.4.1743 (2025-01-04 01:51:10 ago) Sep 01 2012 compare
5,650 2.0.0 (2024-12-03 15:23:21 ago) Jul 17 2019 compare
6,431 1.2.71 (2023-04-25 23:20:15 ago) Dec 28 2012 compare

Other Languages

2,103 v4.4.15 (2025-01-02 16:53:09 ago) Oct 26 2013 compare
353 2.0.42 (2025-01-04 06:07:59 ago) Sep 11 2013 compare
769 3.5.4 (2021-01-21 09:58:10 ago) Mar 02 2013 compare
Was this page helpful?