joshuatz / music-meta-dom-scraper

JS Bookmarklet to pull Song / Album information from various websites

Home Page:https://joshuatz.com/projects/web-stuff/music-meta-dom-scraper/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: Spotify extractor broken (again)

joshuatz opened this issue · comments

Spotify must have updated something. Extractor is failing for multiple locations, including (at a minimum) playlists and album views.

Starting this now; oh goodness did they make this harder. There is basically no semantic HTML or CSS anymore - everything is CSS-in-JS styling and React components... I hate to think what this sounds like with a screen-reader.

Managed to fix everything, except for the search results page. For search results pages, I currently don't have any way (nor do I see an easy one) to extract the album title, since Spotify has completely removed that from the DOM.

A potential (convoluted) future solution could be to make an API request that mirrors the used search terms, which should have full info. There might also be a DOM element in each track that contains an album ID, which I could use to lookup the name, but that would only be feasible if I can make a bulk album API request, since otherwise it would require making dozens of API calls per search results page.