Link Selector problem. What Selector/code to use within a web page

Dear All, Hope someone has mercy of this soul!

Have managed to extract the information but when open the CSV file it comes in great disorder (after arranging it). Also Im confused with which element selector/code(within the web page) should I select at using "Link Selector". I have read the forum and tried different elements but cant guess what to do.

{"_id":"whcoopuk","startUrl":["https://www.coop.co.uk/products/search?query=&page=[1-16]"],"selectors":[{"id":"element","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"div.row div.row","multiple":true,"delay":0,"clickElementSelector":"li.ais-pagination__item:nth-of-type(n+3) span","clickType":"clickOnce","discardInitialElements":false,"clickElementUniquenessType":"uniqueText"},{"id":"link","type":"SelectorLink","parentSelectors":["element"],"selector":".coop-l-flex__item","multiple":true,"delay":0},{"id":"txt","type":"SelectorText","parentSelectors":["link"],"selector":".coop-c-product__title, .coop-c-card__price, dd","multiple":true,"regex":"","delay":0}]}

Finally can anyone let me know what will be the link selector for below pages, hopefully this will provide clarity: The idea is to run over all pages (pagination), select each product (link, dont know what to select here!) and after, extract text from it.

https://groceries.asda.com/search/wine

Sincere Thanks!
Barry

Hi Barry -

There is a load of incorrectness in your sitemap. Let me see if I can help you out.

#1 - You've used TWO methods of pagination concurrently (You've attempted to use ElementClickSelector AND you've set the URL in Metadata to use dynamic URLS [1-15] brackets. You only need one

*If using the [1-16] in the starting URL

  • CHange Element Click Selector to Element Selector
  • If you want to use Element Click Selector
  • Change the Starting URL to the normal https://www.coop.co.uk/products/search?query=&page=1

Issue #2 - When to use "multiple"

  • When using any Element Selector - you don't need to use "multiple" on any child selectors

Issue #3 - You need to create a new text selector for each element on the final page.

check this out

{"_id":"whcoopuk","startUrl":["https://www.coop.co.uk/products/search?query=&page=[1-16]"],"selectors":[{"id":"element","type":"SelectorElement","parentSelectors":["_root"],"selector":"div.row div.row div.coop-l-column","multiple":true,"delay":0},{"id":"link","type":"SelectorLink","parentSelectors":["element"],"selector":"a.coop-c-card__link","multiple":false,"delay":0},{"id":"Name","type":"SelectorText","parentSelectors":["link"],"selector":"h1.coop-c-product__title","multiple":false,"regex":"","delay":0},{"id":"Price","type":"SelectorText","parentSelectors":["link"],"selector":"p.coop-c-card__price","multiple":false,"regex":"","delay":0},{"id":"Alcohol Percentage","type":"SelectorText","parentSelectors":["link"],"selector":"dt:contains(\"Alcohol\")+","multiple":false,"regex":"","delay":0},{"id":"Volume","type":"SelectorText","parentSelectors":["link"],"selector":"dt:contains(\"Vol\")+","multiple":false,"regex":"","delay":0},{"id":"Graps","type":"SelectorText","parentSelectors":["link"],"selector":"dt:contains(\"Grap\")+","multiple":false,"regex":"","delay":0},{"id":"Brand","type":"SelectorText","parentSelectors":["link"],"selector":"dt:contains(\"Brand\")+","multiple":false,"regex":"","delay":0}]}

You are a star!! Thank you for the fast reply!!

Yet, the information isnt showing in properly order. (Have a macro that recognize the web scraper code and set everything into columns). Yet here, there are some rows which comes just beneath but doesnt state the code. Or is it a way to automotically set everything into columns?

Cheers and thank you!!

Use text to columns in excel using comma as a delineator

It