A simple Python script that can download a video or audio from a YouTube playlist or a normal YouTube video.
To download a single video, run:
python youtube_downloader.py
To download a playlist, run:
python youtube_playlist_downloader.py
For Mac and Linux users, change the python
to python3
for version specification
The download files is normally saved at /out
directory of the project
- Clone or download this Github repository
- Run the following command to install pytube
pip install pytube
- MacOS specific step:
- Open your
Applications
folder in finder, and find the folder calledPython 3.x
(x
is your python version). - Double click
installcertificates.command
, which will open the terminal.