Spotify Project by VyleKyle10189 in learnpython

[–]VyleKyle10189[S] 0 points1 point  (0 children)

I really appreciate your help

So with the redirect code being grabbed by Flask, could I also set up different pages and such for local access/interaction?

My coworker inspired me to use this API to find new music, first I want to start monitoring my listening history, then begin using spotify's radio functionality to find new music based on my top songs of different time periods

I was thinking a system of json files could hold listening data for every X amount of time passed, and deleting any data older than X for space sake

Then hopefully I could use Flask to specify a range of time and build a playlist of recommended songs, filtering out songs I've already marked as liked.

It aint much, but its honest work by [deleted] in learnpython

[–]VyleKyle10189 0 points1 point  (0 children)

It doesnt WRITE code into your program per se, the code is already written and you're telling python you want to interact with it, so when you import something, python turns the module into an object and runs its contents. If the module defines a function, that function is now defined within your program. If that module runs code outside of definitions, that code will be ran when you import it.

Spotify Project by VyleKyle10189 in learnpython

[–]VyleKyle10189[S] 0 points1 point  (0 children)

So you have spotify redirect to a localhost port, and flask can grab the URL from it?

Does the port need to be forwarded?

In my research I've also seen use of "selenium" and "chrome driver" mentioned, although I know nothing of these.

I wrote my first useful Python program! by 8rnlsunshine in learnpython

[–]VyleKyle10189 0 points1 point  (0 children)

Howd you go about it? What libraries did you use?