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!