How to extract image URL at specified location to csv?

I am a newbie and hope to get your help!

I want to read the URL of the picture specified by the webpage and save it in csv.
I have done saving the text type. I want to save the text to csv and also save the URL of the image read from the web page to the csv (save the specified text of the web page into the image URL and save it to the csv)

This is my save text to csv,I don’t know how to read the specified image url of a webpage to csv, and multiple specified image urls need to be saved to csv.

{
“Name”: “提取文本”,
“CreationDate”: “2020-12-31”,
“Commands”: [
{
“Command”: “store”,
“Target”: “fast”,
“Value”: “”
},
{
“Command”: “comment”,
“Target”: “”,
“Value”: “标题”
},
{
“Command”: “storeText”,
“Target”: “xpath=//[@id=“content”]/div/div/div[3]/div[2]/div[2]/h1",
“Value”: “cong”
},
{
“Command”: “store”,
“Target”: “{cong}", "Value": "!csvLine" }, { "Command": "echo", "Target": "First column in the CSV is time ({cong}) !csvline”,
“Value”: “”
},
{
“Command”: “echo”,
“Target”: “Set i = 1 as we start the extraction with the 2nd table cell.”,
“Value”: “”
},
{
“Command”: “store”,
“Target”: “1”,
“Value”: “a”
},
{
“Command”: “comment”,
“Target”: “”,
“Value”: “描述”
},
{
“Command”: “storeText”,
“Target”: "xpath=//
[@id=“content”]/div/div/div[3]/div[2]/div[5]”,
“Value”: “c2”
},
{
“Command”: “store”,
“Target”: " {c2}", "Value": "!csvLine" }, { "Command": "echo", "Target": "Extracted Value for i={a} is text = {c2}", "Value": "" }, { "Command": "comment", "Target": "", "Value": "主类目" }, { "Command": "store", "Target": "2", "Value": "b" }, { "Command": "storeText", "Target": "xpath=//*[@id=\"content\"]/div/div/div[3]/div[2]/div[6]/div/a[2]", "Value": "c3" }, { "Command": "store", "Target": " {c3}",
“Value”: “!csvLine”
},
{
“Command”: “echo”,
“Target”: “Extracted Value for i={b} is text = {c3}”,
“Value”: “”
},
{
“Command”: “comment”,
“Target”: “”,
“Value”: “子类目”
},
{
“Command”: “store”,
“Target”: “3”,
“Value”: “c”
},
{
“Command”: “storeText”,
“Target”: “xpath=//[@id=“content”]/div/div/div[3]/div[2]/div[6]/div/a[3]",
“Value”: “c4”
},
{
“Command”: “store”,
“Target”: " {c4}", "Value": "!csvLine" }, { "Command": "echo", "Target": "Extracted Value for i={c} is text = {c4}", "Value": "" }, { "Command": "comment", "Target": "", "Value": "牌子" }, { "Command": "store", "Target": "4", "Value": "d" }, { "Command": "storeText", "Target": "xpath=//*[@id=\"content\"]/div/div/div[3]/div[2]/a", "Value": "c5" }, { "Command": "store", "Target": " {c5}",
“Value”: “!csvLine”
},
{
“Command”: “echo”,
“Target”: “Extracted Value for i={d} is text = {c5}”,
“Value”: “”
},
{
“Command”: “comment”,
“Target”: “”,
“Value”: “挂价”
},
{
“Command”: “store”,
“Target”: “5”,
“Value”: “E”
},
{
“Command”: “storeText”,
“Target”: "xpath=//
[@id=“content”]/div/div/div[3]/div[2]/div[3]/h1/span”,
“Value”: “c6”
},
{
“Command”: “store”,
“Target”: " {c6}", "Value": "!csvLine" }, { "Command": "echo", "Target": "Extracted Value for i={E} is text = {c6}", "Value": "" }, { "Command": "comment", "Target": "", "Value": "卖价" }, { "Command": "store", "Target": "6", "Value": "F" }, { "Command": "storeText", "Target": "xpath=//*[@id=\"content\"]/div/div/div[3]/div[2]/div[3]/h1", "Value": "c7" }, { "Command": "store", "Target": " {c7}",
“Value”: “!csvLine”
},
{
“Command”: “echo”,
“Target”: “Extracted Value for i={F} is text = {c7}”,
“Value”: “”
},
{
“Command”: “comment”,
“Target”: “”,
“Value”: “SKU1”
},
{
“Command”: “store”,
“Target”: “7”,
“Value”: “G”
},
{
“Command”: “storeText”,
“Target”: “xpath=//[@id=“content”]/div/div/div[3]/div[2]/div[4]/div/div/div/button",
“Value”: “c8”
},
{
“Command”: “store”,
“Target”: " {c8}", "Value": "!csvLine" }, { "Command": "echo", "Target": "Extracted Value for i={G} is text = {c8}", "Value": "" }, { "Command": "comment", "Target": "", "Value": "SKU2" }, { "Command": "store", "Target": "8", "Value": "H" }, { "Command": "storeText", "Target": "xpath=//*[@id=\"content\"]/div/div/div[3]/div[2]/div[4]/div/div/div/button[2]", "Value": "c9" }, { "Command": "store", "Target": " {c9}",
“Value”: “!csvLine”
},
{
“Command”: “echo”,
“Target”: “Extracted Value for i={G} is text = {c8}”,
“Value”: “”
},
{
“Command”: “comment”,
“Target”: “”,
“Value”: “SKU13”
},
{
“Command”: “store”,
“Target”: “9”,
“Value”: “I”
},
{
“Command”: “storeText”,
“Target”: "xpath=//
[@id=“content”]/div/div/div[3]/div[2]/div[4]/div/div/div/button[3]”,
“Value”: “c10”
},
{
“Command”: “store”,
“Target”: " {c10}", "Value": "!csvLine" }, { "Command": "echo", "Target": "Extracted Value for i={I} is text = {c10}", "Value": "" }, { "Command": "comment", "Target": "", "Value": "SKU4" }, { "Command": "store", "Target": "10", "Value": "J" }, { "Command": "storeText", "Target": "xpath=//*[@id=\"content\"]/div/div/div[3]/div[2]/div[4]/div/div/div/button[4]", "Value": "c11" }, { "Command": "store", "Target": " {c11}",
“Value”: “!csvLine”
},
{
“Command”: “echo”,
“Target”: “Extracted Value for i={J} is text = {c11}”,
“Value”: “”
},
{
“Command”: “comment”,
“Target”: “”,
“Value”: “SKU5”
},
{
“Command”: “store”,
“Target”: “11”,
“Value”: “K”
},
{
“Command”: “storeText”,
“Target”: “xpath=//*[@id=“content”]/div/div/div[3]/div[2]/div[4]/div/div/div/button[5]”,
“Value”: “c12”
},
{
“Command”: “store”,
“Target”: " {c12}", "Value": "!csvLine" }, { "Command": "echo", "Target": "Extracted Value for i={K} is text = ${c12}",
“Value”: “”
},
{
“Command”: “comment”,
“Target”: “测试”,
“Value”: “”
},
{
“Command”: “csvSave”,
“Target”: “888”,
“Value”: “”
},
{
“Command”: “comment”,
“Target”: “csvSave // 888”,
“Value”: “”
},
{
“Command”: “localStorageExport”,
“Target”: “888.CSV”,
“Value”: “”
}
]
}

To store image url need to use storeattribute

https://ui.vision/rpa/docs/selenium-ide/storeattribute

1 Like

Is there a case or a demonstration? I don’t quite understand how css=img.sensitive-img@src is handled.

Thank you