Skip to content

ItsDenji777/YoutubeDownloader2.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 

Repository files navigation

🎯 YouTube Downloader

Direct video & audio download from YouTube on GitHub — no software installation required

Please ⭐Star the project if you want to support me. (لطفا به این پروژه ستاره بدهید اگر میخواید از من حمایت کنید)

  • Kasra Seydi

📖 Table of Contents


✨ Features

  • 🎬 4 download modes: Single video, Playlist, Channel, Search
  • 🎵 Output formats: MP4 for video or MP3 for audio, with desired quality
  • 📊 Auto indexing: Generates a Markdown file with detailed info for all videos
  • 🛜️ Thumbnails: Automatically fetched for each video
  • ✂️ Smart file splitting: If output size exceeds limit, automatically split into parts
  • 🧹 One-click cleanup: Clear the download folder with a separate workflow
  • 💯 Completely free: No API keys or extra registration needed

📘 Step-by-Step Guide

1. Log in to GitHub

  • Go to GitHub and log in to your account.

2. Fork the Project

  1. Go to the project's main page on GitHub.
  2. Click the Fork button (top-right).
  3. Choose a name for your new repository.
  4. Click Create fork.

3. Configure Permissions

⚠️ This step is critical. Without it, no files will be saved to your repository.

  • Go to your forked repository.
  • Navigate to Settings > Actions > General.
  • Under Workflow permissions, select Read and write permissions and click Save.

4. Enable Actions

  • Go to the Actions tab in your repository.
  • Click "I understand my workflows, go ahead and enable them".

5. Run the Downloader

  1. In the Actions tab, click on 🎯 YouTube Downloader in the sidebar.
  2. Click the Run workflow button.
  3. Fill out the form:
Field Description Example
🔄 Download Mode single, playlist, channel, search single
🎬 URL or Search Query Video/playlist/channel link or search term https://youtu.be/...
📦 Output Type video or audio video
🎚️ Quality Output quality (e.g., 720 for video) 720
🔢 Max results Max number of results (for playlist, channel, search) 10
📦 Split > MB Split files larger than this size (0 = no split) 50
  1. Click Run workflow and wait for the process to complete.

🎮 Download Modes

1. Single Video (single)

Download a single video or its audio.

2. Playlist (playlist)

Download all videos in a playlist.
Additional features:

  • Full index file (Index.md) with detailed info
  • Separate info file for each video

3. Channel (channel)

Fetch the latest videos from a channel. Supports:

  • Full channel link
  • @ChannelName
  • Just the channel name

4. Search (search)

Search for a term and save the result list in a Markdown file.

Note: Videos are not downloaded in this mode — only their information is saved.


⚙️ Advanced Settings

🎚️ Quality

Output Format Supported Qualities
Video (MP4) 144, 360, 480, 720, 1080
Audio (MP3) 128, 192, 320

✂️ Split Threshold

Value Result
0 File is never split
50 Files larger than 50MB are split into 50MB chunks
90 Split threshold set to 90MB

🔢 Max Results

Number of videos processed in playlist, channel, or search modes.


🧩 Managing Split Files

If a file exceeds the set threshold, it is split into multiple compressed parts:

video.mp4.zip
video.mp4.z01
video.mp4.z02
video.mp4.z03

How to extract:

  • Windows: Place all parts in one folder, right-click the .zip file, and select Extract All....
  • Linux Debian
sudo apt install 7zip
7z x [your_file_name].mp4.zip

🗑️ Cleaning Up

Over time, downloaded files can accumulate and take up space in your repository. To clean the download/ folder:

How to Run the Cleanup Workflow

  1. Go to the Actions tab in your repository.
  2. Click on 🧹 Clear Download Folder in the sidebar.
  3. Click the Run workflow button.
  4. Confirm by clicking Run workflow again.

⚠️ Note: This action permanently deletes all files in the download/ folder. Make sure you've saved any files you need before running it.

When to Use Cleanup

  • Before starting a large new download to ensure enough space
  • After you've successfully downloaded and saved your files locally
  • When your GitHub repository storage is getting full (GitHub has limits on repository size)

Cleanup vs Manual Deletion

Method Pros Cons
Cleanup Workflow One click, automated, no coding Deletes everything in the folder
Manual Deletion Selective deletion Requires git commands or web UI navigation

❓ Troubleshooting

Issue Solution
No files appear after download Check Settings > Actions > General > Workflow permissions = Read and write
Cleanup workflow fails Ensure the workflow has write permissions (same as step 3)
Split files won't extract Make sure all parts (.zip, .z01, .z02, etc.) are in the same folder

About

Download from Youtube with iran's National Internet situation

Topics

Resources

Stars

Watchers

Forks

Contributors