Download Image from Website

Hi,

How do I download an image from a webpage? I tried using the download function in the HTTP library but doesn’t seem to work.

Thanks.

Kevin

Hi, @kevinmclee!

This works for me, but might not work in all situations:

*** Settings ***
Documentation     Download an image from a web page.
Library           RPA.HTTP

*** Tasks ***
Download an image from a web page
    Download    https://developer.mozilla.org/assets/mdn_contributor.png

This is the element on that page:

<img src="/assets/mdn_contributor.png" alt="Tiled Mozilla Logo" width="523" height="323">
1 Like