Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
koenrhPublic archive

About

Dynamically create and update Spotify playlists based on your Airtable music database.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

spotitable

Dynamically create and update playlists in Spotify based on your music database in Airtable.

Prerequisites

Create Spotify app

  1. Create a new Spotify app
  2. Add a 'name' and 'description'
  3. Click 'edit settings'
  4. Add http://127.0.0.1:8080/callback as a 'Redirect URI' and and click 'save'
  5. Note the 'Client ID' and 'Client Secret' (click 'show client secret') on the app details page

Create Airtable music base

  1. Create a new Airtable base with a 'Tracks' table (example)
  2. Make sure that the table at least has the following columns:
    • Year (Number)
    • Like (Checkbox)
    • Love (Checkbox)
    • BPM (Number)
    • Spotify ID (Single line text)
  3. Generate an Airtable API key

Configure environment

⚠️ Before you continue, you should be aware that most shells record user input (and thus secrets) into a history file. In Bash you could prevent this by prepending your command with a single space (requires $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"

Installation

go get github.com/koenrh/spotitable

Usage

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.


spotify authentication

airtable

spotify playlist

About

Dynamically create and update Spotify playlists based on your Airtable music database.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages

⌂ 换网址