Skip to content

Python tool for downloading YouTube videos in the best available quality. It uses the pytube library to facilitate the download and allows the user to specify the video URL and the destination path to save the file.

License

Notifications You must be signed in to change notification settings

Alextc35/youtube-downloader

Repository files navigation

Youtube Downloader

A simple tool for downloading Youtube videos using yt-dlp. This Python script allows you to download the best available video and audio formar for a given Youtube URL.

Requirements

  • Python 3.7 or higher.

Installation

Windows

  1. Clone this repository:
git clone https://github.com/Alextc35/youtube-downloader.git
  1. Navigate to the project directory:
dir youtube-downloader
  1. Create and activate a virtual environment:
python -m venv venv
.\venv\Scripts\activate
  1. Install the dependencies:
pip install -r requirements.txt

macOS y Linux

  1. Clone this repository:
git clone https://github.com/Alextc35/youtube-downloader.git
  1. Navigate to the project directory:
cd youtube-downloader
  1. Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate
  1. Install the dependencies:
pip install -r requirements.txt

Download the Executable (No Python Required)

To simplify usage, I have generated an executable that you can download directly.

  1. Download the file: The executable file is available in the dist/yt_download section.
  2. Extract the file.
  3. Run the file:
    • On Windows: Double-click on yt_download.exe.
    • On macOS and Linux: Open a terminal and navigate to the directory containing the file. Then, execute:
chmod +x yt_download
./yt_download

Usage

  1. Run the script: With the virtual environment activated, run the script with:
python yt_download.py
  1. Enter the YouTube video URL you want to download when prompted.
  2. Provide the destination path where the video will be saved.

Example

Introduce la URL del vídeo de YouTube (debe empezar con https://): https://www.youtube.com/watch?v=dQw4w9WgXcQ
Introduce la ruta de destino para guardar el vídeo: /path/to/your/folder

License

This project is licensed under the MIT License.

Contributions

Contributions are welcome. If you would like to contribute to this project, please open an issue or submit a pull request with your improvements.

Contact

@alextc35

About

Python tool for downloading YouTube videos in the best available quality. It uses the pytube library to facilitate the download and allows the user to specify the video URL and the destination path to save the file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published