You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

yt-rss-dl

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yt-rss-dl

A YouTube RSS Video Downloader

0.0.2
pipPyPI
Maintainers
1

yt-rss-dl

YouTube RSS Video Downloader

This Python script allows you to download videos from YouTube channels using their RSS feeds. The script organizes the downloaded videos by channel name and year, and names each video using the format [Upload date] - 'Name' - [Video ID].

Features

  • Automatic Download: Fetches and downloads videos from specified YouTube channels via their RSS feeds.
  • Organized Storage: Videos are sorted into directories based on channel name and upload year.
  • Avoid Duplicate Downloads: Tracks downloaded videos in a downloaded.dat file to prevent re-downloading the same video.
  • Customizable Naming Convention: Each video is named according to the format [Upload date] - 'Name' - [Video ID].

Prerequisites

  • Python 3.6+
  • yt-dlp installed (pip install yt-dlp)
  • feedparser

Installation

  • Clone the repository:
    git clone https://github.com/yourusername/yt-rss-dl.git
    cd yt-rss-dl```
    
    
  • Install the required dependencies: pip install -r requirements.txt

Setup

  • Add Channel IDs: Create a channel_ids.txt file in the root directory. Add the YouTube channel IDs, each on a new line. For example:
UCCWLtpQNoq7gbiHqssF4rPg
UC_x5XG1OV2P6uZZ5FSM9Ttw
  • Run the Script:
python yt-rss-dl.py

How It Works

  • The script reads the YouTube channel IDs from channel_ids.txt.
  • It fetches the latest videos for each channel using their RSS feed.
  • The script checks if a video has already been downloaded (tracked in downloaded.dat).
  • If not downloaded, the video is downloaded using yt-dlp, saved in a directory structure organized by channel name and year.
  • The script renames the video according to the format [Upload date] - 'Name' - [Video ID].

Example Output Structure

downloaded_videos/
└── Channel Name [Channel ID]/
    ├── 2023/
    │   ├── 2023-05-12 - Example Video 1 - [dQw4w9WgXcQ].mp4
    │   └── 2023-06-15 - Example Video 2 - [yPYZpwSpKmA].mp4
    └── 2024/
        └── 2024-07-11 - Example Video 3 - [zZZ5FSM9Ttw].mp4

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.