0.0
No commit activity in last 3 years
No release in over 3 years
calculate coincidence(in %) between two music accounts
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 13.0
~> 3.0
~> 1.7

Runtime

 Project Readme

MusicCompare

With this gem you can:

  • fetch public playlists from spotify into .csv files
  • compare two .csv playlist files for matches

Installation

Add this line to your application's Gemfile:

gem 'music_compare'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install music_compare

Usage

First you need to specify 'client_id' and 'client_secret', you can do this in .env file or when you create an object:

compare = MusicCompare::Compare.new('client_id', 'client_secret')

Fetch playlists

To fetch playlists from spotify you need playlists id's, for example:

playlists = ['1Iddrohefgh7PJgNjL9Kmp', '7r88KVwegNkxSl36zrhx30']
compare.fetch_playlists!(playlists)

also you can specify directory path, where you want to store you playlists:

compare.fetch_playlists!(playlists, dir_path: 'home/username/')

Compare playlists

compare.compare('1Iddrohefgh7PJgNjL9Kmp', '7r88KVwegNkxSl36zrhx30')

or with directory path:

compare.compare('1Iddrohefgh7PJgNjL9Kmp', '7r88KVwegNkxSl36zrhx30', dir_path: 'home/username')