Giter Club home page Giter Club logo

spotifind's Introduction

Spotifind

What is it?

Spotifind is an app that uses Spotify's API to connect one artist to another by a chain of related artists.

You start with an origin artist, and you go through their related artists, and each related artists’ related artists, and so on and so forth, until you get a chain that links your origin artist to your destination artist by how they are related.

Spotifind is written in Go and requires the Golang compiler and GOPATH/GOROOT to be properly set up.

API

Spotifind uses Spotify's API, so creating and registering an application is necessary. Go to Spotify's developer site to login with your Spotify account, and create your application. Call it whatever you want and don't worry about having a URI redirect or a website to link to. Just type the name of your application and its description and you'll get your client id and client secret. Save these, as we will need them shortly!

Installation

  1. git clone https://github.com/ryanmcdermott/spotifind.git
  2. cd spotifind
  3. export SPOTIFY_CLIENT_ID="(YOUR_CLIENT_ID)"
  4. export SPOTIFY_CLIENT_SECRET="(YOUR_CLIENT_SECRET)"
  5. make vendor_get
  6. make build
  7. The executable should be available ./bin/ and can be run by the example below.

Example

./bin/spotifind -o "Led Zeppelin" -d "Taylor Swift"

TODO

  • Allow users to specify the number of concurrent workers to run
  • Add a '--silent' option
  • Better error handling when the app exceeds Spotify's API request limit.

Contributing

Pull requests are much appreciated and accepted.

License

Spotifind is released under the MIT License

Credits

Nick Saika's incredible article on concurrent workers for Golang.

spotifind's People

Contributors

ryanmcdermott avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.