Skip to content

Powershell script that automates the process of downloading videos from specified YouTube channels while keeping track of previously downloaded videos using an archive file. It is designed to efficiently manage downloads by checking against an existing archive to avoid duplicates.

License

Notifications You must be signed in to change notification settings

D3anDev/youtube-archiver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

YouTube Archiver (PowerShell)

This PowerShell script automates downloading videos from specified YouTube channels while tracking previously downloaded videos using an archive file. It efficiently manages downloads by avoiding duplicates through archive checks.

Features

  • Prefix-aware Archive Loading: Loads video IDs from an archive file, stripping any prefixes for accurate matching.
  • Channel Management: Reads YouTube channel URLs from a file and processes each channel individually.
  • Directory Structure: Creates directories per channel to organize downloaded videos.
  • Video Filtering: Skips videos already listed in the archive to prevent re-downloads.
  • Metadata Handling: Downloads video metadata including descriptions, thumbnails, and subtitles along with videos.
  • Error Handling: Ignores errors during downloads to allow continuous script execution.

Usage

Prepare Files

  • Create a channels.txt file listing the YouTube channel URLs you want to download from.
  • Ensure an archive file named downloaded_archive.txt exists to track downloaded videos.
  • (Optional) Provide a cookies.txt file if authentication is required for any channels.

Run the Script

  • Execute the PowerShell script in Windows PowerShell.

Output

  • Videos will be saved inside a yt-dlp directory, organized by channel name.

Requirements

  • Install yt-dlp
    You will need Python installed. You can install yt-dlp using:
    pip install yt-dlp
    or download the standalone binary for your platform.

Notes

  • The script displays progress and summary in the console, including numbers of videos found, skipped, and downloaded per channel.
  • At the end, the script prompts to exit.

About

Powershell script that automates the process of downloading videos from specified YouTube channels while keeping track of previously downloaded videos using an archive file. It is designed to efficiently manage downloads by checking against an existing archive to avoid duplicates.

Topics

Resources

License

Stars

Watchers

Forks