YouTube Video Downloader with Python

A program made with Python to download YouTube videos in any resolution or audio only format.
The pytube library was used for the program.

What is pytube?
Pytube is a lightweight, Pythonic, dependency-free, library (and command-line utility) for downloading YouTube Videos.


Python3 libraries

pip install pytube
pip install pyqt5-tools
pip install PyQt5Designer
pip install Pillow
pip install urllib3

Possible errors you may encounter

Pytube: urllib.error.HTTPError: HTTP Error 410: Gone

Execute the commands below.

python -m pip install --upgrade pytube
python -m pip install git+

Pytube library – Receiving “pytube.exceptions.RegexMatchError: regex pattern” error when attempting to access video data

Replace the var.regex line in the file with the code

var_regex = re.compile(r"^$*\w+\W")

If you still get an error after trying the solutions, replace the contents of the file below with


View Github