callrua / spotipyutils Goto Github PK
View Code? Open in Web Editor NEWAutomate common Spotify interaction with Python
Automate common Spotify interaction with Python
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.
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.
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.
With python 2 being deprecated, would be nice to have the utils ported to python 3.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.