I created my first advanced macro for scraping Allmusic for certain data and then add it to a markdown file saved in Obsidian. I am trying to create a database in Obsidian, and wan't to easily grab data from music and movie webpages. So first off is Allmusic and this one is done by the help and inspiration of JMichaelTX's example "Extract Data from Web Page and Display".
I post it here:
Extract Allmusic.kmmacros (8.5 KB)
If we take an example like: Ghost Song - Cécile McLorin Salvant | Songs, Reviews, Credits | AllMusic, the Macro will then scrape the site for album title, year, artist, genre, styles, duration and finally cover (and this is where I need some guidance). Unfortunately, I can't seem to manage to grab images and add as a variable. Any help would be appreciated!
This is where the image file comes in: