This is a Streamlit-based web application that allows users to download YouTube videos in various formats and qualities.
- Download YouTube videos in different formats:
- Best quality (
best
) - Audio-only (
bestaudio
) - Video-only (
bestvideo
)
- Best quality (
- Easy-to-use interface with input fields and dropdowns.
- Full-width layout for a responsive user experience.
- Download button to save the video directly to your device.
- Python 3.8+
- Libraries:
streamlit
yt-dlp
os
- Clone the repository:
git clone https://github.com/yourusername/youtube-video-downloader.git
cd youtube-video-downloader
- Install the required Python packages:
pip install -r requirements.txt
- Run the application:
streamlit run app.py
-
Open your web browser and navigate to the provided URL (usually
http://localhost:8501
). -
Enter the YouTube video URL, select the desired quality, and click "Get Video."
-
Once downloaded, use the download button to save the video to your device.
app.py
: The main Streamlit app script.requirements.txt
: List of required Python libraries.
- Ensure the
downloads
directory has appropriate permissions for storing temporary video files. - Downloaded files are automatically deleted after download to save disk space.
This project is licensed under the MIT License. See the LICENSE file for details.
This application is for educational purposes only. Ensure you have the rights to download and use the content before proceeding.