Fixed bug (3rd September, which stopped spotify2mp3 downloading songs).
Ideally use Python 3.8.0 but works down to Python 3.1.0
Clone the project
$ git clone https://github.com/couldbejake/spotify2mp3.git
Go to the project directory
$ cd spotify2mp3
Install desired packages using PIP 3.8
$ pip3.8 install -r requirements.txt
Run the script
$ python3.8 run.py
Inside run.py
you can modify several variables to change how the script operates:
MIN_VIEW_COUNT
: The variable that indicates how many views a video has to have before it can be used, defaults to 5000 (meaning songs with less than 5000 views will be ignored and the song will be skipped)MAX_LENGTH
: The maximum length a song can be and still be downloaded, defaults to 600 seconds or 10 minutes (meaning only songs shorter than 10 mins will be downloaded)FAILURE_THRESHOLD
: The number of songs that need to fail before prompting to re-run with a lower view count, defaults to 5 (meaning 5 songs or more must fail for user to be prompted)
When prompted for a spotify URL link you will want to go to the spotify web player and navigate to your playlist. The URL will be in the form https://open.spotify.com/playlist/<URL Link>
you have two options:
- Copy-paste the entire URL
- Copy just the URL link (should just be letters and numbers), and paste that into the prompt
If you get the error 'could not find match for ^\w+\W' install this temporary patch by JazPin;
pip3 uninstall pytube
python3 -m pip install git+https://github.com/JazPin/pytube