How to extract a single Image URL at a time in UIPath?

Currently UiPath only gives you the option to extract an image URL via an Extract Table Data activity (for Scraping from websites on the Chrome Browser etc).

Are there any clever tricks used to extract image URL’s?

Scenario: I have a hypothetical shoe store that I scrape the titles and title urls from (Primary Scraping) - but the images are only available after opening each title url and extracting the image url’s one at a time (Secondary Scraping).

I have looked through the list of activities and nothing I have tried has worked yet.
I have also looked through various old UiPath Forum posts and “UiPath Documentation” (the help guide).

@jezaia.vanderwatt,

Please follow this FAQ regarding this.

And this solution also seems fit for your requirement.

Thanks,
Ashok :slight_smile:

1 Like

Hi @jezaia.vanderwatt

Use the get attribute activity and indicate the element from which you want to extract the URL and use the strict slector and using the UiExplorer option change the selectors and get the URL.

Regards

Thank you @ashokkarale

You have led me to the answer that I think I am looking for

I will test it out and see if it works :+1:

1 Like

Hi @ashokkarale and @vrdabberu
Bot of you are correct

It would have been nice if you mentioned that I need to click the plus symbol - and select “Mark as Customisable” - because if you don’t - the user thinks that something is wrong with the system as it won’t let you access that dropdown menu where you select “href” or “src” etc

Example below
mark it as customiseable

also - for the future people reading this comment section for answers - src is the image link - minus the main websites link
fake example

image from amazon
src = /imagename/filename20%otherword.jpg
Full image link = https://www.amazon.com/imagename/filename20%otherword.jpg
(PS: this is a fake link - do not click it - it’ll probably result in an no page found error).

@jezaia.vanderwatt,

Glad you explored this :star_struck: This could have considered by us. Sorry for that!

Happy learning!

Thanks,
Ashok :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.