This project leverages the pytube library to create a Python-based YouTube video and playlist downloader. Whether you're looking to download a single video or an entire playlist, this script has got you covered!
- Single Video Download: Download any YouTube video by simply providing its URL.
- Playlist Download: Download all videos from a YouTube playlist.
- Progress Bar: Real-time download progress tracking thanks to the
tqdm
library. - Error Handling: Robust error handling for network issues and video availability.
- Retry Mechanism: Auto-retry on network errors.
- Custom Output Path: Choose where you want to save your downloaded videos.
- Logging: Detailed logs for debugging and auditing.
- Python 3.x
- pip or pip3
- Clone this repository:
git clone https://github.com/your_username/your_project_name.git
- Navigate to the project directory:
cd your_project_name
- Install the required packages:
or
pip install -r requirements.txt
pip3 install -r requirements.txt
- Run the script:
python main.py
- Follow the on-screen prompts to download your video or playlist.
You can set a default download location by editing the config.ini
file.
- Inspired by an article from Siddharth Chandra.
This project is licensed under the MIT License - see the LICENSE.md file for details.