Download spotify and youtube playlists without having to enter any API keys!
Project description
A simple music downloading app which doesn't require any API keys.
Check pymusicdl-termux for android setup.
Features
- Download single song
- Download Youtube Playlist
- Download Spotify playlist/album (searches on youtube and downloads the top result)
- Convert downloaded songs to mp3 or flac
The final result
Setup
Check it out on YouTube!
Installation and usage:
Windows
Note
Read the instructions carefully
- Make sure Python is added to your Path.
- You can check it by typing
py --version
in cmd.- Consider running this piece of code (in cmd) for installing python (if you don't have python installed):
make sure to check "add to PATH"curl -o python.exe https://www.python.org/ftp/python/3.9.5/python-3.9.5-amd64.exe && python.exe
- You can check it by typing
- Make sure PIP is added to your Path.
- You can check it by typing
pip --version
orpy -m pip --version
in cmd.- Consider running this piece of code (in cmd) for installing pip (if you don't have PIP installed):
curl -o get-pip.py https://bootstrap.pypa.io/get-pip.py && py get-pip.py
- You can check it by typing
- Run the following command in Command prompt
curl -o setup.bat https://raw.githubusercontent.com/insaiyancvk/pymusicdl/main/setup.bat && setup && del setup.bat
- Everytime you want to download music just type
musicdl
in cmd :)
Linux
- Install the pymusicdl.
pip install pymusicdl
pip install https://github.com/mps-youtube/pafy/archive/refs/heads/develop.zip
-
Install FFMPEG based on the distro.
- Debian/Ubuntu -
sudo apt install ffmpeg
- Fedora/RHEL -
sudo dnf install ffmpeg
- Arch -
sudo pacman -S ffmpeg
Referred from ubuntupit
- Debian/Ubuntu -
-
Download "musicdl" to ~/.local/bin, make it executable.
curl -o ~/.local/bin/musicdl https://raw.githubusercontent.com/insaiyancvk/pymusicdl/pure-python/musicdl && chmod +x ~/.local/bin/musicdl && clear && echo -e '\n\nType \033[1m\033[3mmusicdl\033[0m in your terminal to download music :)\n\n'
- Everytime you want to download music just type
musicdl
in terminal :)
Android
Check pymusicdl-termux for sample images
-
Download Termux.
DO NOT DOWNLOAD IT FROM PLAYSTORE, for more info check here
- If you have Android version >=7, then click here to directly download termux apk
- Otherwise, download F-Droid apk and install it. Then install Termux from it.
-
Run the below command for installing everything automatically.
curl -sS -o setup.sh https://raw.githubusercontent.com/insaiyancvk/pymusicdl/pymusicdl-termux/setup.sh && chmod +x setup.sh && ./setup.sh
- Everytime you want to download music just type
musicdl
in termux :)
Updating the package:
pip install pymusicdl_termux -U
- or you can use
python3 -m pip install pymusicdl -U
in Termux
To fix the 'dislike_count' error:
-
Uninstall pafy and install from github repository.
(run the following command in command prompt)
pip uninstall pafy && pip install git+https://github.com/mps-youtube/pafy.git#egg=pafy
Updating the package:
pip install pymusicdl -U
-
or you can use
python3 -m pip install pymusicdl -U
if you are on linux -
and
py -m pip install pymusicdl -U
if you are on windows
Fun fact: I did this project when I got covid :)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pymusicdl-1.1.1.tar.gz
.
File metadata
- Download URL: pymusicdl-1.1.1.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/57.4.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c59a9922cccf7c3597daf3b93e286861340babc7d0ec033f456203af59709d72 |
|
MD5 | 0deea4ba3e5d3c7d48d9e1589aa9c13d |
|
BLAKE2b-256 | c7dc35c1d7c196d0549e7e4134d98b71129122e9a12876c57fe11f2aca93fa8a |
File details
Details for the file pymusicdl-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: pymusicdl-1.1.1-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35f62e0e50ac4980eee1911e2f514d12af7e33353460e2eee5c8132947fb8ac2 |
|
MD5 | 7191d20a3bc97cfab9e6ab360430a494 |
|
BLAKE2b-256 | 9d9e22226baac6c5b6b398f413f4b625291bb66430fc49bfda67a4abafd001e7 |