Giter Site home page Giter Site logo

spotipyutils's People

Contributors

callrua avatar mattmooree avatar

Watchers

 avatar

spotipyutils's Issues

Create a web server to serve requests

  • Create a flask/django/whatever server in a docker image
  • set up an endpoint for each feature

I got this working locally in flask, but not in a docker image. The main issue is the auth, specifically the redirect URI stuff. Basically, when you can't interact with the app live and input the response code, it doesn't work.

Need to figure out a different authentication method.

Broaden custom setlist creation options

We have a genre_to_playlist function which can convert a given list of genres to a playlist, but why stop there?

With a view to creating a website, we should create a flexible engine that takes a list of parameters to craft more specific playlists. These parameters should include the spotify track audio features listed here

We should also consider track details, for example the year or decade the track was made, the language the song is in etc etc.

Better CLI functionality

I'm working on better cli functionality so that instead of a bunch of isolated scripts with reused code (eg: auth) we will have one entry into the app with behaviour dictated by args.

So instead of:

./setlist_to_spotify.py --id --setlist

We will be able to do stuff like:

spotipyutils setlist_to_playlist --id --setlist
spotipyutils genre_to_playlist --id --genre

Should help with containerisation/running locally.

Port to python 3

With python 2 being deprecated, would be nice to have the utils ported to python 3.

Use setlist.fm API rather than parsing raw HTML?

I was digging around and found setlist.fm have an API - https://api.setlist.fm/docs/1.0/index.html

@mattmooree thoughts on refactoring to use this instead of bs4 for parsing the HTML?

My initial reaction for using it is "no" because it's another login/auth set to manage. I don't want users having to sign up for setlist.fm for example. (I don't even have a setlist.fm account and I've been using it for years!) Also seems overkill for our current usage, perhaps there's potential for other features by leveraging it though.

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.