A simple Python script that allows you to download YouTube videos using the pytube
library. This project is designed to help users easily download YouTube videos by providing the video URL.
- Downloads the highest resolution available for the video.
- Simple and easy-to-use Python script.
- Uses the
pytube
library to handle video downloading.
To use this script, you need to have Python 3 installed on your system. You also need to install the required dependencies, which are listed in the requirements.txt
file.
-
Clone the repository to your local machine:
git clone https://github.com/yourusername/youtube-downloader.git cd youtube-downloader
-
(Optional) Create and activate a virtual environment (recommended):
Windows:
python -m venv venv venv\Scripts\activate
macOS/Linux:
python3 -m venv venv source venv/bin/activate
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the script:
python youtube_downloader.py
-
When prompted, paste the URL of the YouTube video you wish to download.
-
The video will be downloaded to the current directory by default.
Enter the YouTube video URL: https://www.youtube.com/watch?v=abcd1234
Downloading: Example Video Title
Download completed! Video saved to: ./
If you'd like to contribute to this project, feel free to fork the repository and submit a pull request. Please make sure to write tests and documentation for any new features or bug fixes.