A simple YouTube video downloader built using Python's Streamlit library and yt-dlp
. This application allows users to download YouTube videos by selecting the desired format.
- Download YouTube Videos: Enter a YouTube URL to get video details and download the video in the desired format.
- Format Selection: Choose from available video formats.
- Thumbnail Display: View the video's thumbnail before downloading.
-
Clone the Repository
git clone https://github.com/your-username/streamlit-youtube-downloader.git cd streamlit-youtube-downloader
-
Set Up Virtual Environment
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install Dependencies
pip install -r requirements.txt
-
Run the Streamlit App
streamlit run app.py
-
Access the App
Open your web browser and navigate to
http://localhost:8501
to use the application. -
Download a Video
- Paste a YouTube video URL into the input field.
- Select the desired format from the dropdown menu.
- Enter a filename and click the "Download Video" button.
- The video will be downloaded to the
downloads/
directory.
- Python 3.x
- Streamlit
- yt-dlp
- ffmpeg (for handling multiple formats)
- FFmpeg Error: Ensure that FFmpeg is installed and properly configured in your system's PATH.
- Download Issues: Check the URL and format options. Make sure the video URL is correct and the format is supported.
Feel free to open issues or submit pull requests if you find bugs or have suggestions for improvements.
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by Akram Ullah