Multimedia adapter for youtube api which allows to download content from youtube.
Execute the following command to install using pip:
pip install mayonnaise
To create conda environment use the environment.yml
file:
conda env create -f environment.yml
To download a playlist as a collection of mp3
files run the following command:
python -m maya pull https://www.youtube.com/playlist?list=PLyLY-SxMUzOgbhkUkru4esCxNUl3-DEtj -o assets/314 -a -u
To do the same but download the whole videos (picking the highest quality):
python -m maya pull https://www.youtube.com/playlist?list=PLyLY-SxMUzOgbhkUkru4esCxNUl3-DEtj -o assets/314 -a
If you are not downloading age-restricted videos, then option -a
(authentication) can be omitted:
python -m maya pull https://www.youtube.com/playlist?list=PLyLY-SxMUzOgbhkUkru4esCxNUl3-DEtj -o assets/314