This is a Streamlit application for downloading YouTube videos. It allows you to download videos from YouTube by providing a text file with the video links.
Make sure you have the following library installed:
- Streamlit
You can install it by running the following command:
pip install streamlit
-
Clone this repository.
-
In the directory where the
youtube.py
file is located, open the terminal or command prompt. -
Run the following command to start the application:
streamlit run youtube.py
- The application will open in your default browser.
-
After opening the application in the browser, you will see a title and a description instructing you to upload a text file containing the YouTube video links to initiate the download.
-
Click on the "Select a text file" button to upload the text file. Make sure the text file contains one video link per line.
-
After selecting the text file, you will be prompted to provide the path where the files will be saved, if eu check "I'm running locally" box. Enter the full path of the directory where you want to save the downloaded videos. Make sure the path is valid and exists.
-
After selecting the text file and providing the destination path, the video download or link generation will start automatically. The progress will be displayed in the application, indicating the current video number and the total number of videos to be downloaded.
-
Once all the videos are downloaded, a success message will be displayed.
-
The application was developed using the
streamlit
library to create the interface. -
In case of errors during the download, an error message will be displayed in the application with information about the encountered problem.
-
You can install the pytube library through pip, but an error occurrs when you try to download. See the following link for more details:
https://stackoverflow.com/questions/76325815/pytube-error-while-running-in-google-colab/76330331#76330331
https://darlysson10-youtubedownloader-youtube-wj6av2.streamlit.app/