Docs
MAC WebCrawler
Download Image

Download Image

The Download image operation allows you download images from a specified webpage. You can also use it to download a single image by providing it the direct url of the image.

Download images from a webpage

Input Fields

Operation Fields

  • Page or Image URL: Specify the webpage url that contains the images you wish to download. This will download all images found on the webpage. Alternatively, you can provided a direct link to the image if you want to download a single image only.
  • Download Location : The path where the crawler will download images to.

XML Configuration

Below is the XML configuration for this operation:

<
<mac-web-crawler:download-image 
doc:name="Download image" 
doc:id="426d217d-74c5-4c9d-9bdb-74f075fc1f26" 
url="#[payload.url]" 
downloadPath="#[payload.path]"/>
/>

Output Field

This operation responds with a json payload.

Example Output

{
    "https://mac-project.ai/_next/image?url=%2Flogos%2Fmulechain-project-logo.png&w=96&q=75": "mulechain-project-logo.png",
    "https://mac-project.ai/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fcard-1.b6224663.png&w=3840&q=75": "card-1.b6224663.png",
    "https://mac-project.ai/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fcard-operations.d3098f38.png&w=1920&q=75": "card-operations.d3098f38.png",
    "https://mac-project.ai/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fcard-1.dark.fd8b5613.png&w=3840&q=75": "card-1.dark.fd8b5613.png"
}