This is a simple Python project that allows you to download videos from YouTube.
- Clone this repository.
- Navigate to the project directory.
- Create a virtual environment:
python3 -m venv env
- Activate the virtual environment:
source env/bin/activate
(Unix/MacOS) or.\env\Scripts\activate
(Windows) - Install the required packages:
pip install -r requirements.txt
- Set the
path
variable in themain.py
script to the directory where you want to save the downloaded videos. - Set the
url
variable in themain.py
script to the URL of the YouTube video you want to download. - Run the
main.py
script with the URL of the YouTube video you want to download as an argument:python main.py
- The video will be downloaded to the directory you specified.
This project uses the following Python libraries:
pytube
: for downloading YouTube videoshumanize
: for formatting file sizes and durations
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the terms of the MIT license.