Skip to content

A TypeScript-based Node.js script that uses the Setlist.fm API to fetch the latest live performance from one or multiple artists and import it into a Spotify playlist. You can create a new playlist or update an existing one. The integration with Spotify is handled through the Spotify Web API.

Notifications You must be signed in to change notification settings

francoborrelli/setlistfm-2-spotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎶 Setlist.fm to Spotify 🎧

This TypeScript-based Node.js script fetches the latest setlist from one or multiple artists using the Setlist.fm API and imports it into a Spotify playlist. You can choose to create a new playlist or update an existing one. The Spotify integration is powered by the Spotify Web API.

✨ Features

  • 📥 Fetch the latest setlist from Setlist.fm for one or more artists.
  • 🎧 Automatically create a new Spotify playlist or update an existing one.
  • 🔗 Seamless integration with the Spotify Web API.
  • 🐳 Docker support for easy setup.

🚀 Getting Started

Prerequisites

Before running the script, ensure you have the following:

🔧 Installation

  1. Clone this repository:

    git clone https://github.com/francoborrelli/setlistfm-2-spotify.git
  2. Navigate to the project directory:

    cd setlist-to-spotify-playlist
  3. Install dependencies:

    yarn install
  4. Create a .env file with your Spotify and Setlist.fm credentials:

    SETLIST_API_KEY=your_setlistfm_api_key
    SPOTIFY_API_CLIENT_ID=your_spotify_client_id
    SPOTIFY_API_CLIENT_SECRET=your_spotify_client_secret

▶️ Usage

To run the script, use the following command:

yarn start

You will be prompted to authenticate with Spotify and choose between creating a new playlist or updating an existing one.

🐳 Docker Setup

If you prefer to run the project using Docker, follow these steps:

  1. Build the Docker image:

    docker build -t setlistfm-2-spotify .
  2. Run the Docker container:

    docker run --env-file .env setlistfm-2-spotify

The script will run inside the Docker container, and you'll still need to authenticate with Spotify.

🛠️ Built With

📝 License

This project is licensed under the MIT License.

About

A TypeScript-based Node.js script that uses the Setlist.fm API to fetch the latest live performance from one or multiple artists and import it into a Spotify playlist. You can create a new playlist or update an existing one. The integration with Spotify is handled through the Spotify Web API.

Topics

Resources

Stars

Watchers

Forks