Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
380 views
in Technique[技术] by (71.8m points)

javascript - Download image from website using Apple Automator / Java Script

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:

  1. open the website (open.spotify.com)
  2. display website
  3. 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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...