5 ms·
I get a weekly newsletter with a bunch of music recommendations in it, which I had been manually adding to a Spotify playlist. So I recently wrote a CLI in Nod
by mxxx 9y ago
I get a weekly newsletter with a bunch of music recommendations in it, which I had been manually adding to a Spotify playlist.
So I recently wrote a CLI in Node that takes a URL and a CSS-style query selector (ie, '.album-title'), then scrapes the page, searches for each found instance and adds them all to a spotify playlist.
github.com/markreid/scrapify
- selfish-duck 9y agoThat's awesome! I'm currently working on a similar thing using Pitchfork best new music, Gorilla vs Bear reviews and Needle Drop best tracks of the week + favorite albums of the month. Very clean code btw o/
- mxxx 9y agoCheers dude. I use the pitchfork best albums as an example in the readme because it's quite a simple one. Feel free to fork or borrow or contribute!