Python Music Downloader
- python (3 or above)
- yt-dlp (fork of youtube-dl)
- youtube-search-python
- ffmpeg
- Install python 3
- Install the required python libraries:
pip install yt-dlp
pip install youtube-search-python
- Clone the repo:
git clone https://github.com/goncrust/pyMP.git
- Go to the directory:
cd pyMP
- Run:
python3 src/main.py
usage: python3 src/main.py [mode] [options] [...]
modes:
D Download mode.
Q Query mode.
options:
-h Displays this help message.
-k <keyword> Keyword for query (also works with D mode).
-s <number> Query size (default: 5).
-u <URL> URL for download.
-p <URL> URL for playlist download.
-o <output file> Set destination file name and location (default: [current dir]/[video title].mp3).
- Be prompted to select a video from youtube search to download:
python3 src/main.py D -k duality -o "~/Music/Slipknot-Duality.mp3"
- Download directly from a video url:
python3 src/main.py D -u "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
- Download a playlist:
python3 src/main.py D -p "https://www.youtube.com/watch?v=cwp9ojsvAus&list=PLU6YJ-jFUEF4EAoUeBkWac1di0W2fNT1_" -o ~/Music/simbiose/
The source code is licensed under the open source GPL v3.0. License is available here.