This repository allows you to add a "MSN What I'm listening to" feature to your Instagram account using Spotify. The application takes what you're currently listening to on Spotify and updates it on your Instagram story. This is a basic Python script you can run on your local machine.
You need to have Python 3.8+ installed on your computer.
For Windows, install Python using Chocolatey:
choco install python
For MacOS, install Python using Homebrew and Pyenv:
brew install pyenv
pyenv install 3.9.2
The next step is to install the required Python packages by running the following command:
pip3 install -r requirements.txt
- Go to the Spotify Developer's Dashboard.
- Log in with your Spotify account.
- Create a new application.
- Set a Redirect URL. This can be something simple like
http://localhost
. - Note down the
Client ID
andClient Secret
that Spotify provides for your application.
Copy the provided .env.local
file to .env
, and fill the variables with your Spotify and Instagram details:
SPOTIFY_CLIENT_ID=
SPOTIFY_CLIENT_SECRET=
SPOTIFY_REDIRECT_URI=http://localhost
INSTAGRAM_USERNAME=
INSTAGRAM_PASSWORD=
Once all the setup is complete, you can run the application with the following command:
python3 main.py
Upon first run, the application will prompt you to paste the URL that is opened in your browser. This step is required to authorize your application's access to your Spotify account.
You can also run the application as Dockerized container with restart policy. If your docker daemon is up, your application is ready to run all the time
docker build -t spotify-to-id .
docker run --restart=always -d spotify-to-ig:latest
Contributions, issues, and feature requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project is under the MIT license. See LICENSE for more details.
If you have any questions or suggestions, feel free to open an issue or pull request.