[PR #2561] [CLOSED] Add pytube #3981

Closed
opened 2026-04-15 09:48:19 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/vinta/awesome-python/pull/2561
Author: @ByteJoseph
Created: 2/3/2024
Status: Closed

Base: masterHead: master


📝 Commits (1)

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 README.md (+1 -0)

📄 Description

ℹ️ Pytube: A lightweight and easy-to-use Python library for downloading YouTube videos. Pytube provides a simple interface to interact with YouTube's API, allowing developers to effortlessly integrate video downloading functionality into their applications. It supports various video resolutions and formats, making it a versatile choice for fetching YouTube content programmatically.

🚀 Key Features:

  • Simple API for video downloading
  • Support for multiple video resolutions and formats
  • Ability to download entire playlists
  • Lightweight and easy to integrate into Python projects

👩‍💻 Usage Example:

from pytube import YouTube

# Example: Download a YouTube video
from pytube import YouTube

youtube_video_url = 'https://www.youtube.com/watch?v=example_video_id'

yt = YouTube(youtube_video_url)
video_stream = yt.streams.get_highest_resolution

print(f"Video Title: {yt.title}")
print(f"Video Duration: {yt.length} seconds")
print(f"Video Resolution: {video_stream.resolution}")

download_directory = '/path/to/download/directory'

print("Downloading...")
video_stream.download(download_directory)
print("Download complete!")


---

<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
## 📋 Pull Request Information **Original PR:** https://github.com/vinta/awesome-python/pull/2561 **Author:** [@ByteJoseph](https://github.com/ByteJoseph) **Created:** 2/3/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`fea69c8`](https://github.com/vinta/awesome-python/commit/fea69c8c96ae4da5b1c776fc18c28910f1670ad3) Add pytube ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) </details> ### 📄 Description ℹ️ **Pytube**: A lightweight and easy-to-use Python library for downloading YouTube videos. Pytube provides a simple interface to interact with YouTube's API, allowing developers to effortlessly integrate video downloading functionality into their applications. It supports various video resolutions and formats, making it a versatile choice for fetching YouTube content programmatically. 🚀 **Key Features:** - Simple API for video downloading - Support for multiple video resolutions and formats - Ability to download entire playlists - Lightweight and easy to integrate into Python projects 👩‍💻 **Usage Example:** ```python from pytube import YouTube # Example: Download a YouTube video from pytube import YouTube youtube_video_url = 'https://www.youtube.com/watch?v=example_video_id' yt = YouTube(youtube_video_url) video_stream = yt.streams.get_highest_resolution print(f"Video Title: {yt.title}") print(f"Video Duration: {yt.length} seconds") print(f"Video Resolution: {video_stream.resolution}") download_directory = '/path/to/download/directory' print("Downloading...") video_stream.download(download_directory) print("Download complete!") --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 09:48:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-python#3981