Giter VIP home page Giter VIP logo

price-my-spotify-library's Introduction

Price My Spotify Library

Project Status: Active – The project has reached a stable, usable state and is being actively developed.

Do you like streaming and purchasing music ?

Ever wonder how much your entire Spotify library would cost for you to purchase? No? Well you still can !

Usage

  1. Clone the repository
  2. Create a Spotify API Key: https://developer.spotify.com/documentation/web-api/
  3. Add your SPOTIFY_CLIENT_ID and SPOTIFY_CLIENT_SECRET to a .env file and source .env (alternatively you can just run the script with these variables set in the environment).
# .env
export SPOTIFY_CLIENT_ID=123
export SPOTIFY_CLIENT_SECRET=456
  1. Run the script
ruby -W0 main.rb --user your_username
  1. Print!

Example:

Hello spotifyusername!

Your Spotify library is composed of:

115 playlists
3053 tracks

If you wanted to purchase your entire Spotify library, it would cost around: 3022.47 USD.

+----------------------------------------------+--------------------+
| Playlist                                     | Cost               |
+----------------------------------------------+--------------------+
| xxxxxxxxxxxxxxxxxxxxxxxxxx                   | 99.0               |
| xxxxxxxxxxxxxxxxxxxxxxxxx                    | 99.0               |
| xxxxxxxxxxxxxxxxxxxxxxxxxxx                  | 72.27              |
| xxxxxxxxxxxxxxxxxxxxxxxxxxx                  | 10.89              |
| xxxxxxxxxxxxxxxxxxxxxxxxxxx                  | 14.85              |
| xxxxxxxxxxxxxxxxxxxxxxxxxxx                  | 79.2               |
| xxxxxxxxxxxxxxxxxxxxxxxxxx                   | 78.21              |
 # etcetera..

LICENESE

This repository is licensed under MIT Open Source

price-my-spotify-library's People

Contributors

aquaflamingo avatar

Stargazers

 avatar Jonno avatar Lobsang avatar alex avatar Matthias Cremieux avatar Fatih Özbek avatar Paul Mullins avatar Alessandro Aresta avatar  avatar Ted Behling avatar  avatar Sergey Filimonov avatar Woongbin Kang avatar 2k avatar Adam avatar

Watchers

 avatar  avatar

price-my-spotify-library's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.