Hello,
I use the browser version of UI.vision on Brave 1.14.84,
I am trying to extract the hyperlink of pin image from Pinterest, I don’t want to scrape images, I want to extract the url of the pin, I have searched the forum, it seemed that it has been a bug, but I am not sure if it has been resolved or not, I tried putting @href, @scr, at the end of xpath, but it gives me error:
(chrome-extension://gcbalfbdmfieckjlnblleoemohcganoc/popup.html#): missing attribute ‘href’
here is the macro:
{
"Name": "pin-url",
"CreationDate": "2020-9-30",
"Commands": [
{
"Command": "open",
"Target": "https://www.pinterest.com/ideas/classy-mens-fashion/955483968817/",
"Value": ""
},
{
"Command": "storeAttribute",
"Target": "xpath=//*[@id=\"__PWS_ROOT__\"]/div/div[2]/div/div/div/main/section/div/div/div/div/div/div/div/div/div/a/div/div/div/div/div/div/div@href",
"Value": "pin_url"
},
{
"Command": "store",
"Target": "pin_url",
"Value": "!csvLine"
},
{
"Command": "csvSave",
"Target": "top-pin_url",
"Value": ""
},
{
"Command": "localStorageExport",
"Target": "top-pin_url",
"Value": ""
}
]
}
I have tried this macro on Firefox ver. 80.01. as well, the same issue, it gives me the same error, if I put @scr at the end of xpath, the error is
missing attribute ‘scr’
how can I do this? Is anyone willing to help?
I want to extract 10 pin hyperlinks that appear on the page, each on separate row.
thanks