Spotify Genre-Based Artist Comparison

Project Aim

This project aims to give a visual showing similar artists with a searched one based on genres.

How to use ?

  • Enter an artist name into search box to see two plots and one data frame:

    • Artist Popularity: Popularity of similar artists based on genres. It gives at most 10 artists for each genre of the searched one.

    • Track Popularity: Shows the popularity of the top 5 tracks of similar artists.

    • Artists Table: Shows the genres of all similar artists.

  • Please be sure to spell artist name correctly otherwise it will give an error. Case is not important.

  • All the data is fetched from Spotify API in real time.

Accessing Spotify API

#install and load required library
devtools::install_github('charlie86/spotifyr')
load(spotifyr)
# Set up Spotify API credentials
id <- "your_id"
secret <- "your_secret"
Sys.setenv(SPOTIFY_CLIENT_ID = id)
Sys.setenv(SPOTIFY_CLIENT_SECRET = secret)
access_token <- get_spotify_access_token()

Packages Used

library(shiny)
library(spotifyr)
library(ggplot2)
library(dplyr)
library(viridis)
library(RColorBrewer)
library(plotly)
library(bslib)

Snapshot

Github

spotify-genre-based-artist-comparison

THANK YOU!