Programming
How To Build a Web App To Download YouTube Videos in 30 Lines of Code — Python Project Tutorials
Published in
6 min readDec 21, 2020
We will be using Streamlit and pytube to build our youtube downloader web app. I will also give a brief overview of the pytube library.
We will be implementing the following features
- The ability for the user to give the URL as an input
- If available, the ability to chose between video with audio/audio download
Setup Virtual Environment
Before we start, we will need to set up and activate a virtual environment
pip install virtualenv /* Install virtual environment */ virtualenv venv /* Create a virtual environment */
venv/Scripts/activate /* Activate the virtual environment */
Install Required Libraries
We will need to install the following Libraries