GithubHelp home page GithubHelp logo

mymindwentblvnk / spotify-release-gun Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 4.0 67 KB

A python tool that informs about new releases of the artists you follow.

License: MIT License

Python 93.56% Makefile 4.22% Dockerfile 2.22%
spotipy spotify-api python

spotify-release-gun's Introduction

spotify-release-gun

A Python tool that notifies about new releases of artists that you follow.

What it does

  1. Logs on to your Spotify account.
  2. Gets all your followed artists.
  3. Gets for all those artists the latest n albums, singles or appearances.
  4. Checks if there are new releases for an artist (check against a cache of already handled releases).
  5. Notifies about all new releases since the last update on

If you want to use it

  1. Clone repository.
  2. Rename rename_to_settings.py to settings.py and enter the missing information.
  3. Run make docker-build-and-run

First time run

Authorize application

While your first run you are asked to authorize spotify-release-gun in your Spotify account so it can access your followed artists. The prompt will look like this:

Processing Spotify user <your_user_name>


            User authentication requires interaction with your
            web browser. Once you enter your credentials and
            give authorization, you will be redirected to
            a url.  Paste that url you were directed to to
            complete the authorization.

        
Opened https://accounts.spotify.com/authorize?redirect_uri=<your_redirect_uri>&response_type=code&client_id=<client_id>&scope=user-follow-read in your browser


Enter the URL you were redirected to:

Open the link in your browser, authorize the application and you will be redirected to the redirect URI. Copy the URL and paste it into the terminal. This will generate the .cache_<your_user_name> file in the project folder. The next time you run the script everything works out as you'd wish for.

FYI

The first run will not generate notifications in Really Simple RSS Server or Slack since this run is there to build the cache file. Second run is the one that produces output.

spotify-release-gun's People

Contributors

michael-123 avatar mymindwentblvnk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.