Imagine having all your favorite Spotify songs at your fingertips, even without an internet connection. And what if you could download them in pristine 320kbps quality without paying a cent? It's possible with Onthespot. Keep reading to learn how to download Onthespot to unlock the secrets of free, high-quality Spotify music downloads.
What is Onthespot?
Onthespot is a free, open-source tool available on GitHub designed to download Spotify music to your local device. Primarily written in Python, it's compatible with Windows, macOS, and Linux. Currently, this project requires a Spotify Premium account to function. It allows you to download Spotify music in your preferred format, including popular audio formats like MP3, FLAC, and M4B. Moreover, it can download entire playlists, albums, artist discographies, podcasts, and audiobooks—essentially, all streaming content on Spotify. Finally, its conversion speed is relatively fast compared to other tools, and it supports automatic downloading of currently playing songs.
Environment Setup Before Downloading Onthespot to Get Spotify Premium Free
In fact, Onthespot might seem primarily geared towards developers due to its reliance on programming-related tools for downloading and installation. But don't worry! Installing these tools isn't as daunting as it might seem, and I'll provide detailed steps for each one below. Just follow along, and even if you're not a developer, you'll be able to download and use Onthespot with ease! If you encounter any issues during installation, feel free to leave a comment below, and I'll do my best to help you troubleshoot.
The official Onthespot GitHub page provides various installation methods tailored to different platforms. In this guide, I'll focus on demonstrating how to install Onthespot on Windows. The process for other platforms should be similar, so you can adapt these instructions accordingly.
Before you start, you'll need to install the following:
- FFmpeg
- Python
- Git
- Microsoft C++ build tools
If you already have these tools installed on your computer, you can skip to the next part to download Onthespot directly on your computer.
How to Download FFmpeg Before Installing Onthespot
Step 1. Head to the official website of FFmpeg: https://ffmpeg.org/.
Step 2. Click on the "Download" button on the right.
Step 3. Click on the Windows icon on the left, followed by the first link below it.
Step 4. Then you will be redirect to a new page. On this page, select the link named "ffmpeg-git-full.7z" to download he latest version of FFmpeg.
Note:
The name of the package may change as it updates.
Step 5. Extract the FFmpeg file to a location you want to save it on your computer. Then navigate to the "bin" folder and copy its path , for example, mine here is:
D:\ffmpeg\ffmpeg\bin
Step 6. Then we need to add it to the system path for Onthespot to use it. Right click on the "My PC" icon on your computer. Select "Properties" in the drop down menu.
Step 7. On the opened system settings page, click on "Advanced system settings" on the right.
Step 8. Then click on "Environment variables" at the bottom.
Step 9. On the newly opened windows, navigate to "System variables", find and select "Path", then click on "Edit" to modify system variables.
Step 10. In the system variable window, click on "New" on the right to add new system variable, then paste the path of FFmpeg "bin" file into the input bar at the bottom. At last, click on "OK" to finish.
Step 11. Click all the "OK" to close opened windows and save this change.
Now FFmpeg should have been added to your system path.
How to Download Python Before Installing Onthespot
Python is the main language used to build Onthespot, so you need to install it on your computer too.
Step 1. Head to the official website of Python: https://python.org/.
Step 2. Click on the "Downloads" tab on the top.
Step 3. Then click the big yellow "Download Python X.X.X" to download the latest version of Python.
Step 4. Double click on the downloaded exe file. When you install python, do remember to check "Add Python X.X.X" box below on the opening page, this will add python to the system path on your computer.
Step 5. Then you can follow the instructions all the way to finish installation. I think it's quite simple, so I'm not gonna list it here, you can comment below if you encounter any problems.
How to Download Git Before Downloading Onthespot
Step 1. Go to the download page of Git: https://git-scm.com/downloads.
Step 2. Select Windows version of Git to download.
Step 3. Then on the newly opened page, select "64-bit Git for Windows Setup", this will download the exe file to your computer.
Step 4. Double click on the downloaded Git exe file, hit on "Install", after a while, it will install Git to your computer.
Note:
I already have Git installed, so this time it seems like to be just an upgrade. If you're installing Git for the first time, remember that the installer might ask you a bunch of questions. Just keep clicking "OK" or something similar to accept the default settings for everything.
How to Download Microsoft C ++ Build Tools Before Downloading Onthespot
Step 1. Go to the official website of Microsoft C ++ Build Tools: https://visualstudio.microsoft.com/visual-cpp-build-tools/
Step 2. Click on the download button on the left to download Microsoft C ++ Build Tools.
Step 3. Double click on the downloaded exe file. It will open a page like this:
Check the box of "Desktop development with C ++" on the left. Then on the right, select "MSVC v143 -VS 2022 C ++ x86/x64 build tools" and "Windows 10 SDK", keep others in default. Finally, click on "Install" below to begin installation.
Note:
If you are using Windows 11, you should instead check the box of "Windows 11 SDK".
Step 4. After installation, please restart your computer to make sure Microsoft C++ Build Tools can work.
How to Install Onthespot to Get Spotify Premium for Free
- Step 1Download the Package
Open you file explorer and select a folder you want to save Onthespot, copy its path. After this, Open your terminal or command prompt by pressing "Windows" + "R" key on your keyboard.
Type in following command to let the terminal navigate to the folder you just selected, remember to replace "(your folder path)" with your actual path:
cd (your folder path)
If you chose a drive other than C drive, please use this command:
cd /d (your folder path)
Then type the following command and press Enter to download Onthespot package with Git:
git clone https://github.com/casualsnek/onthespot
If it succeeds, it will output like this:
- Step 2Navigate to the Onthespot Folder
Next, change your current directory to the newly created "onthespot" folder by following command:
cd onthespot
- Step 3Install Necessary Components
Then use pip to install the required packages listed in the "requirements.txt" file:
pip install -r requirements.txt
Once the download is complete, you should see output similar to this:
- Step 3Navigate to the Source Code Folder
Move into the "src" directory where the main application code is located by executing this command:
cd src
- Step 4Run Onthespot
Finally, launch the Onthespot application:
python -m onthespot
After you execute this command, the Onthespot GUI will launch automatically.
Then you need to log in your Spotify Premium account in the "Configuration" tab, then type in your Spotify email and password to log in.
Under normal circumstances, you should be able to log in without any issues at this point. However, a recent bug has surfaced that prevents successful login even after entering your email and password.
Don't fret! I'll provide a detailed walkthrough on how to fix this bug and get you logged in. If this bug has already been resolved by the time you download Onthespot, feel free to skip ahead to the next section on how to use it.
How to Fix Onthespot Login Problem
Step 1. Onthespot initially looks for available accounts in the "C:\Users\USERNAME.config\casualonthespot\config.json" file and utilizes the cached session. If the accounts field within this file is empty, modify it as follows:
"accounts": [ [ "EMAIL", true, 1, "a" ] ],
Tips:
You can open the "config.json" file with either IDE tools or simply notepad to modify accounts settings.
Step 2. Copy the following code and save it as a .py file (e.g., script.py)
from librespot.zeroconf import ZeroconfServer
import time
import logging
import pathlib
zs = ZeroconfServer.Builder().create()
logging.warning("Transfer playback from desktop client to librespot-python via Spotify Connect in order to store session")
while True:
time.sleep(1)
if zs._ZeroconfServer__session:
logging.warning(f"Grabbed {zs._ZeroconfServer__session} for {zs._ZeroconfServer__session.username()}")
if pathlib.Path("credentials.json").exists():
logging.warning("Session stored in credentials.json. Now you can Ctrl+C")
break
Step 3. Open your terminal or command prompt and navigate to the directory where you saved the script.
Step 4. Execute the script by typing "python script.py" and pressing Enter, then keep the terminal open, don't close it, regardless of the errors it throws.
Step 5. Open the Spotify app, log into your Spotify Premium account and click on the "Connected Devices" icon in the bottom right corner.
Step 6. From the list of available devices, select "Librespot-python"
Note:
If your Spotify account is not a Premium account, the "Librespot-python" will not be clickable, like this:
And if you are using Spicetify, please execute "spicetify restore" to restore Spotify to its default look temporarily, otherwise the available devices may be not be visible.
After this, the terminal will output like this:
This means the script has generated a "credentials.json" file, you can find it in the same folder where your "script.py" locates.
Step 7. Then copy this file and go to the path below to place it:
C:\Users\(USERNAME)\.cache\casualOnTheSpot\sessions\
Finally, rename this "creadentials.json" to "ots_login_a.json".
Now, navigate to where your Onthespot locates and reopen Onthespot with the this same command to see if it works:
python -m onthespot
It will appear like this:
And you can find your account has successfully logged in in configuration tab.
How to Use Onthespot to Download 320kbps Spotify Music for Free
Next, let's see how to use Onthespot.
How to Download Spotify Music with Onthespot
Step 1. Copy the link of Spotify playlists/songs/albums/podcasts/audiobooks into the search on the top of Onthespot GUI.
Step 2. Then click on "Search" button on the right, Then all the found music will be automatically downloaded, you can view the downgliding process under the "Progress" tab. And when it's done, you can click on the "Locate" button to locate them.
How to Output Different Audio Formats of Spotify Music with Onthespot
You can go to the "Configuration" tab, then click on the "Show/Hide Advanced options" button. This will show a new "Advanced configuration" tab on the top. Click on it, then you can designate preferred output format by changing the content within input bar of "Media format".
I've tried "flac", "m4b", "m4a" and Onthespot successfully transformed Spotify music to all these formats, you can also try other formats.
Note:
Output formats like "m4a", "wav" will not retain original ID3 tags of Spotify music, use with caution.
How to Change the Name Structure of The Outputted Spotify Music
You can change the name structure of the outputted tracks, playlists, and albums under the "Advanced configuration" tab mentioned above in Onthespot as well. And the Onthespot official has given all the available options on their GitHub page, feel free to customize these settings according to your preferences.
Best Alternative to Onthespot to Get Spotify Premium for Free
Onthespot is amazing, it allows Spotify Premium account users to download Spotify music at highest quality for offline listening for free. This way, they can keep their preferred Spotify music forever without the burden of recurring monthly subscription fees.
However, it does come with some short backs. For example, it is mainly geared toward developers, The installation of Onthespot also involves installation a lot of programming-related tools, which may not be friendly to most users.
So, I want to introduce DRmare Spotify Music Converter to you. It also allows you to download 320kbps Spotify music with your Spotify Premium account. What's more, you can use it to download Spotify music into common formats even with a Spotify free account. And compared to Onthespot, it is geared toward all users, whether they are developers or not, it has a user-friendly interface which almost everyone can learn to use it in one minute or two.
- Convert Spotify songs to MP3, FLAC, and other formats effortlessly
- Keep 100% original audio quality without any ads
- Manage and organize your downloaded tracks with ease
- Fast 5x conversion speed saves you time
How to Use DRmare Spotify Music Converter to Download 320kbps Spotify Music.
First, please download and install DRmare Spotify Music Converter on your computer with the button above. The copy the link of your Spotify music, paste it into the search bar of DRmare Spotify Music Converter.
- Step 2Customize the Output Settings
You can designate the output settings by click on the menu button on the top right, followed by "Preferences" → "Convert", and then you can set preferred audio format, sample rate and more here.
Step Convert Spotify Music
At last, simply click on the "Convert" button at the bottom to begin conversion.
After conversion, you can find your Spotify music in the designated folder.
Comparison Between Onthespot and DRmare Spotify Music Converter
DRmare Spotify Music Converter | Onthespot | |
---|---|---|
Highest audio quality | 320kbps | 320kbps |
Batch downloading | ✔ | ✔ |
Supported format | MP3/WAV/FLAC/and more | MP3/WAV/FLAC/and more |
Keep ID3 tags | ✔ | ✔ |
Support different output structure | ✔ | ❌ |
Spotify Premium needed | ❌ | ✔ |
Easy to install | ✔ | ❌ |
Customize Bitrate | ✔ | ❌ |
From the comparison above we can see that DRmare Spotify Music Converter is more versatile than Onthespot, and it's also easier to use. So it may be a great alternative to Onthespot for you.
User Comments
Leave a Comment