EuIrcBot
EuIrcBot copied to clipboard
bandcamp plugin
Linking an album or artist or whatever should show some metatadata. Not sure how able we are to actually pull this off, as I don't know if this is normalized across bandcamp pages.
Worst case we could just use the title. A quick google shows bandcamp has an npm module / api, so that looks quite doable. https://www.npmjs.org/package/bandcamp
I contacted bandcamp to see if they would give an api key for this project and they gave this response:
Thanks for your interest. Our APIs are currently limited to Label Accounts (bandcamp.com/labels) looking to pull physical order and general sales information, though that might change down the road. Please keep an eye on bandcamp.com/developer for updates.
So that's a no go on the bandcamp API.
We ran into this for the amazon module as well, and using xray is working well enough there.
I'd have no problem with css-selectoring bandcamp pages until thy have a proper api.
The amazon module's code serves as a good example imo:
https://github.com/euank/EuIrcBot/blob/b44ed0ae2262b8cb855fd48ba0fec8b4f3f9dc4d/modules/amazon/index.js#L32-L34