# pytube/pytube

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/pytube-pytube).**

13,130 stars · 2,508 forks · Python · Unlicense

## Links

- GitHub: https://github.com/pytube/pytube
- Homepage: https://pytube.io
- awesome-repositories: https://awesome-repositories.com/repository/pytube-pytube.md

## Topics

`python` `youtube` `youtube-downloader`

## Description

Pytube is a Python library and command line interface for downloading videos, playlists, and captions from YouTube. It functions as both a programmatic tool for metadata extraction and a standalone media downloader.

The project is designed using only the Python standard library to avoid external package dependencies. It utilizes regular expression-based HTML parsing to extract stream URLs and asset details directly from the platform.

The library supports retrieving video metadata and thumbnails, as well as extracting caption tracks. It provides capabilities for downloading entire playlists and reconstructing DASH streams when progressive downloads are unavailable.

## Tags

### Graphics & Multimedia

- [Video Downloaders](https://awesome-repositories.com/f/graphics-multimedia/video-downloaders.md) — Fetches video content using progressive or DASH streams to save files to a local machine. ([source](https://github.com/pytube/pytube#readme))
- [Downloader Library Integration](https://awesome-repositories.com/f/graphics-multimedia/video-downloaders/downloader-library-integration.md) — Provides a programmatic Python library for integrating YouTube video, playlist, and caption extraction into other applications.
- [Media Downloaders](https://awesome-repositories.com/f/graphics-multimedia/media-processing-analysis/media-downloaders.md) — Functions as a command line tool for fetching media content directly to a local machine.
- [Video Metadata Extraction](https://awesome-repositories.com/f/graphics-multimedia/media-processing-analysis/media-manipulation/media-processing/video-analysis-processing/video-metadata-extraction.md) — Extracts technical and descriptive asset details from video entities. ([source](https://github.com/pytube/pytube#readme))
- [Media Content Archivers](https://awesome-repositories.com/f/graphics-multimedia/media-production-suites/media-management-production/media-archiving/media-content-archivers.md) — Enables automated downloading of entire playlists and content for offline storage.
- [Playlist Content Retrievers](https://awesome-repositories.com/f/graphics-multimedia/streaming-distribution/streaming-broadcasting/media-streaming/playlist-aggregators/playlist-content-retrievers.md) — Retrieves every video within a linked playlist in a single operation. ([source](https://github.com/pytube/pytube#readme))
- [Stream Reconstruction](https://awesome-repositories.com/f/graphics-multimedia/streaming-distribution/streaming-broadcasting/media-streaming/video-streaming/stream-reconstruction.md) — Implements logic to combine separate audio and video streams when progressive downloads are unavailable.
- [Captioning Systems](https://awesome-repositories.com/f/graphics-multimedia/video-production/captioning-systems.md) — Downloads subtitle files and saves them in a standard text format for media players. ([source](https://github.com/pytube/pytube/blob/master/README.md))
- [Thumbnail Services](https://awesome-repositories.com/f/graphics-multimedia/video-production/thumbnail-services.md) — Retrieves the direct URL of video thumbnail images for use in external applications. ([source](https://github.com/pytube/pytube/blob/master/README.md))

### Business & Productivity Software

- [Media Downloaders](https://awesome-repositories.com/f/business-productivity-software/media-downloaders.md) — Provides a command line interface to execute media downloads without writing scripts. ([source](https://github.com/pytube/pytube/blob/master/README.md))

### Content Management & Publishing

- [Regex Extraction Utilities](https://awesome-repositories.com/f/content-management-publishing/content-processing-transformation/content-processing/regex-based-parsers/regex-extraction-utilities.md) — Extracts video metadata and stream URLs from raw HTML source using regular expression patterns.

### Development Tools & Productivity

- [Video Metadata Extractors](https://awesome-repositories.com/f/development-tools-productivity/documentation-discovery-metadata/metadata-processing-analysis/metadata-extraction-tools/video-metadata-extractors.md) — Provides tools for parsing and extracting stream information and asset metadata from YouTube videos.

### Networking & Communication

- [Direct Stream Requesting](https://awesome-repositories.com/f/networking-communication/direct-stream-requesting.md) — Downloads media by sending HTTP requests directly to video hosting servers using extracted stream URLs.

### Software Engineering & Architecture

- [Dependency-Free Architectures](https://awesome-repositories.com/f/software-engineering-architecture/dependency-free-architectures.md) — Relies exclusively on the Python standard library to eliminate external package dependencies.
