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.pyTo download a playlist, run:
python youtube_playlist_downloader.pyFor 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
Applicationsfolder in finder, and find the folder calledPython 3.x(xis your python version). - Double click
installcertificates.command, which will open the terminal.