YTSnatch is a simple command-line tool that allows you to download YouTube videos or playlists and convert them to MP3 format. With options for video-only or audio-only downloads, it provides a streamlined way to manage media using yt-dlp and ffmpeg for conversion. Perfect for quick, easy video and audio downloads!
- Single URL Download: Download individual YouTube videos.
- Playlist Download: Download entire YouTube playlists.
- Audio Extraction: Convert YouTube videos to MP3 format.
- Video Download: Download videos in MP4 format.
- User-Friendly CLI: Simple command-line interface.
-
Clone the repository:
git clone https://github.com/Pizzarous/YTSnatch.git
-
Navigate to the directory:
cd YTSnatch -
Install dependencies:
Make sure you have Python (3.6+) installed. Then, run:
pip install yt-dlp
-
Download and set up FFmpeg:
- Download the full version of FFmpeg.
- Place
ffmpeg.exeinto therequirementsfolder you just created. - Add the
requirementsfolder to your Windows PATH:- Right-click on This PC or My Computer and select Properties.
- Click on Advanced system settings.
- Click on the Environment Variables button.
- In the System variables section, find the Path variable and select it. Click Edit.
- Click New and add the path to your
requirementsfolder (e.g.,C:\...\YTSnatch\requirements\). - Click OK to close all dialog boxes.
To run YTSnatch, you can either execute the Python script directly or use the included run.bat file.
-
Navigate to the
srcdirectory:cd src -
Run YTSnatch:
python __main__.py
To modify the Option 2 Batch File section of your README.md to reflect the changes you have made in the Python code, you'll want to clarify how to run the application through the batch file. Below is an updated version that emphasizes using the batch file to run your project:
To easily run Kinshi-YTSnatch, you can use the included batch file. This will handle the setup for you.
- Double-click the
run.batfile located in the root directory of the repository to launch the application.
You'll then be prompted with options to choose from:
1. Download a single URL
2. Download a playlist
3. Exit
-
Choose an option:
- Single URL: Downloads only the video from the provided URL.
- Playlist: Downloads all videos from the provided playlist URL.
- Exit: Exits the application.
-
After selecting an option, you'll be asked whether you'd like to download video or audio only (
v/a). -
Enter a custom folder name for the download or leave it empty to ignore it.
-
Finally, enter the URL you want to download from. The application will process the request and display completion status.
This project is licensed under the MIT License.
If you encounter any issues, feel free to open an issue in the Issues tab.
Enjoy using YTSnatch! 😊