Dynamically create and update playlists in Spotify based on your music database in Airtable.
- Create a new Spotify app
- Add a 'name' and 'description'
- Click 'edit settings'
- Add
http://127.0.0.1:8080/callback
as a 'Redirect URI' and and click 'save' - Note the 'Client ID' and 'Client Secret' (click 'show client secret') on the app details page
- Create a new Airtable base with a 'Tracks' table (example)
- Make sure that the table at least has the following columns:
- Year (Number)
- Like (Checkbox)
- Love (Checkbox)
- BPM (Number)
- Spotify ID (Single line text)
- Generate an Airtable API key
$HISTCONTROL
to be set
to ignorespace
or ignoreboth
).
export AIRTABLE_API_KEY="your_airtable_api_key"
export SPOTIFY_CLIENT_ID="your_spotify_client_id"
export SPOTIFY_CLIENT_SECRET="your_spotify_client_secret"
go get github.com/koenrh/spotitable
Create and update Spotify playlists based on the specified Airtable base and table.
spotitable -base appdhLGd8xDk23xlP -table "Tracks"
In order to interact with the Spotify API, you need to request a Spotify access token that is authorized to perform actions on your account. In order to retrieve that token this tool opens the Spotify login page in your default browser. After your confirmation it will receive the access token.