Skip to content

Save the list of liked songs from Spotify to a file using the API and upload to GitHub

Notifications You must be signed in to change notification settings

nyok/MySpotifyLikedSongs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting a List of Liked Songs in Spotify Using the API

Environment variables in a file .env

MYSPOTIFYLIKEDSONGS_CLIENT_ID='CLIENT_ID'
MYSPOTIFYLIKEDSONGS_CLIENT_SECRET='CLIENT_SECRET'
MYSPOTIFYLIKEDSONGS_URL='URL'

Launch: python3 main.py

Make auto commit & push to GitHub (if there are new liked songs)

Environment variables in a file .env

GITHUB_USERNAME='USERNAME'
GITHUB_REPO='REPONAME'
GITHUB_TOKEN='CLIENT_TOKEN'

Launch: python3 autocommit.py

Previously it was necessary to load the variable manually export $(xargs < .env) now this is done automatically using the "dotenv" library

About

Save the list of liked songs from Spotify to a file using the API and upload to GitHub

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages