- Automatically upload Instagram stories when you listen to song on Spotify.
- Install Requirements
pip3 install -r requirements.txt
- Install apt packages
sudo apt install mediainfo ffmpeg -y
-
Get Spotify configurations for
.env
. -
Fill your configuration
.env
file. -
Run
python3 config.py
, you will automatically redirected to Spotify login page, if not, go tohttps://accounts.spotify.com/authorize?client_id={CLIENT_ID}&response_type=code&redirect_uri=http://localhost:{PORT}&scope=user-read-playback-state%20user-read-currently-playing
and give authorisation to your spotify account, to fill out missing configurations. -
Finally run the screipt with
python3 main.py
.
-
Go to this.
-
Login to your profile.
-
Create new app and set app name and description.
-
Redirect URI should be http://localhost:PORT, where you can use custom PORT number by adding it in
.env
. Default PORT number is 3000. So it should look likehttp://localhost:3000
. -
Select Web API and Agree to the TOS and guidelines and save the app.
-
Go to your app's dashboard and head to settings tab.
-
Copy Client ID and Client Secret and fill it in
.env
.
Note: 2FA support for instagram is not yet implemented.
CLIENT_ID= #Get it from https://developer.spotify.com
CLIENT_SECRET= #Get it from https://developer.spotify.com
IG_USERNAME= #Your instagram username
IG_PASSWORD= #Your instagram password
Note
- Songs are cached for 1 day and same song won't be uploaded again within 24 hours.