This is a youtube downloader that downloads the video from the youtube link.
Clone the repository to your local machine or download the zip file.
git clone https://github.com/LittleFish-Coder/youtube-downloader.git
Use the package manager pip to install the required packages.
The packages are listed in the requirements.txt file:
- pytube
- yt-dlp
- moviepy
- streamlit
Use the following command to install the packages.
pip install -r requirements.txt
use the following command to run the web app.
streamlit run app.py
There are total 4 files/scripts in this project.
- video_downloader.py (Recommended)
- video_downloader_fast.py
- video_downloader.bash (for MacOS and Linux)
- video_downloader.bat (for Windows)
In general, it is recommended to use the video_downloader.py script as first priority. The video_downloader.py script performs better in contrast to the bash and bat scripts.
Change the url variable to the youtube link at line 13.
url = "https://www.youtube.com/watch?v=9bZkp7q19f0"
Then run the script.
python video_downloader.py
It will then download the video with 1080p resolution(if available) and the audio with the highest quality available.
Change the url variable to the youtube link at line 11.
url = "https://www.youtube.com/watch?v=9bZkp7q19f0"
Then run the script.
python video_downloader_fast.py
It will then download the video faster but with 720p resolution(mostly) and the audio with the highest quality available.
Run the script.
bash video_downloader.bash
It will ask for the youtube link.
Enter the youtube link and press enter, then it will download the video with 1080p resolution(if available) and the audio with the highest quality available.
Run the script.
video_downloader.bat
It will ask for the youtube link.
Enter the youtube link and press enter, then it will download the video with 1080p resolution(if available) and the audio with the highest quality available.