Installation

Here we will go over installing Python 3 and pip, downloading the project, installing packages using pip, and adding Spotify to PATH.

Installing Python 3

Windows

If you already have Python 3, skip this section. Navigate to python.org/downloads.

Tip:

You may install an older and more stable version of Python if you would prefer

win-python-download

Click on the large yellow button close to the top of the screen. Here it says “Download Python 3.9.6”, but it may be slightly different for you. Open the downloaded file. It should look something like this.

win-python-install

Make sure “Add Python to PATH” is checked towards the bottom. Click “Install Now”, grant any permissions it asks for, and wait for it to complete.

win-python-install-success

If you see a screen something like this, you have successfully installed Python 3!

Debian/Ubuntu

Since most Debian based Linux distributions come with Python 3, first check if you already have it installed. Run the command python3 --version. If you get a response similar to Python 3.8.10, then you already have Python installed. If you don’t get an output like that, you need to install Python 3. Run the command sudo apt install python3.

Warning:

Most distributions don’t come with pip installed. Run pip3 --version to see if it’s installed. If not, run sudo apt install python3-pip.

Downloading the project

Tip:

If you have git installed, you may clone the repo instead

Navigate to github.com/daspartho/SpotiByeAds.

gh-download

Click on the green button labeled “Code” and click on it. A drop down menu should appear. Press “Download ZIP”.

Extracting the project

Windows

win-extract-zip-1

After downloading the ZIP file, right click on it and press “Extract All”.

win-extract-zip-2

Choose where you want to extract the project to and press “Extract”.

Debian/Ubuntu

ubuntu-extract-zip

After downloading the ZIP file, right click on it and press “Extract Here”.

Installing packages

Note:

The program now installs packages automatically, so you no longer have to manually install anything. The below instructions are optional.

Open Command Prompt or PowerShell on Windows or Terminal on Debian/Ubuntu. Type in the command pip install spotipy pynput. On Debian/Ubuntu you may need to type pip3 install spotipy pynput. You should get a success message similar to Successfully installed pynput-1.7.3 spotipy-2.18.0, but it may be slightly different.

Adding Spotify to PATH

Note:

This is only required for Windows systems. Linux users can skip this step.

spotify-path1

Search up Spotify in Windows search (Windows Key + S) and press “Open file location”.

spotify-path2

This should bring up a Spotify shortcut. Right-click on that and press “Open file location”.

spotify-path3

Tip:

The default path for Spotify is C:\Users\yourname\AppData\Roaming\Spotify

This should open the location of the Spotify executable. Click on the path at the top of the File Explorer and copy it. From the command line, run setx path "%path%;spotifypath", replacing spotifypath with the path that you just copied. To check that it has been added to the PATH variable, run path. You should see the path to Spotify you just added at the very end.

Now click “Next” to go over creating a new Spotify application, getting the ClientID and secret, and running the program with them.