I want to download an image from the Spotify-Webplayer using Apple Automator.
The image is always in the same location on the website, I just want the script to open the website (open.spotify.com) and download the image of the song that is currently playing.
The XPath of that element is:
//*[@id="main"]/div/div[2]/div[2]/nav/div[3]/div[2]/div/a/div/div/img
Using Apple Automator I am doing the following:
- open the website (open.spotify.com)
- display website
- run JavaScript
-> now the image should be downloaded
Due to my limited knowledge that's all I can manage. JavaScript is empty as of right now.
I would really appreciate help. Thank you.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…