This Python script provides a simple graphical user interface (GUI) to download YouTube videos, including audio and captions.
- Download the highest resolution video with audio.
- Download audio only.
- Download captions in a specified language.
- Python 3.x
pytube
libraryyoutube-transcript-api
librarytkinter
library (part of the Python standard library)
-
Clone this repository or download the script.
-
Navigate to the directory containing the script.
-
Install the required libraries using the following command:
pip install -r requirements.txt
-
Run the script:
python your_script_name.py
Replace
your_script_name.py
with the actual name of the Python script. -
The GUI will appear. Enter the YouTube video URL, select options for downloading captions, and specify the output directory.
-
Click the "Download" button to start the download process.
-
Enter the YouTube URL:
https://www.youtube.com/watch?v=dQw4w9WgXcQ
-
Specify the language for captions (default is
en
for English). -
Check the box if you want to download captions.
-
Select the output directory where you want to save the downloaded files.
-
Click "Download" and wait for the process to complete.
- Ensure you comply with YouTube's terms of service when downloading content.
- The script may not work for videos that are restricted or have disabled captions.
This project is distributed under a MODIFIED CREATIVE COMMONS ATTRIBUTION-NONCOMMERCIAL 3.0 LICENSE. Refer to the LICENSE file for specifics.