Need to get link that change position on page, also needed to be place it on same CSV column

Hello team,

I would like to know how to get a link that will be in only two possible sections on URL, then place the result into the same CSV column. Only one of these links will be available on the current scrape page.

Example:

(Wanted Store URL https://shop544741807.taobao.com/)(strong a)
URL#1
https://item.taobao.com/item.htm?id=620377843014


(Wanted Store URL https://shop432581832.taobao.com/)(a.shop-name-link)
URL#2
https://item.taobao.com/item.htm?id=612021251957

As you can see, the Store URL for the Items could be in different secctions,also in different elements. But the scrape result have to be stored under same excel column.

{"_id":"taobao_scraper","startUrl":["https://item.taobao.com/item.htm?id=620377843014"],"selectors":[{"id":"Store_left-side","type":"SelectorLink","parentSelectors":["_root"],"selector":"strong a","multiple":false,"delay":0},{"id":"Store-name_Top-right","type":"SelectorLink","parentSelectors":["_root"],"selector":"a.shop-name-link","multiple":false,"delay":0}]}

On this sitemap the result will be saved in different columns on .CSV file. How I can save the same result under same column?

Could you help me on this?

Thanks for everything!

You can specify 2 elements for one selector by separating them with a comma, e.g.

element1,element2

WS will first look for element1, and if not found, it will look for element2.

The alternative is to simply create new scrapers (new columns) for all the different elements. You can call them BackupURL1 BackupURL2, etc