Hi All,
I would like to scrap all the data that are on this page
I would like to have the data as from : " Top Restaurants in Antananarivo"
The list contains 8 pages and I am not able to scrap the data from all the 8 pages, I am only able to do so on the first one.
What I want to achieve.
For each element on the list, trigger a click action to navigate to the page and extract informations from the newly opened page. Repeat that as long as there are elements in the list.
This is my code
{"_id":"try","startUrl":["https://www.tripadvisor.com/Restaurants-g293809-Antananarivo_Antananarivo_Province.html"],"selectors":[{"id":"restaurant-link","type":"SelectorPopupLink","parentSelectors":["_root"],"selector":"div._1llCuDZj:nth-of-type(n+2) a._15_ydu6b","multiple":true,"delay":0},{"id":"name","type":"SelectorText","parentSelectors":["restaurant-link"],"selector":"h1.ui_header","multiple":false,"regex":"","delay":0},{"id":"popularity","type":"SelectorText","parentSelectors":["restaurant-link"],"selector":"span.header_popularity","multiple":false,"regex":"","delay":0},{"id":"price-category","type":"SelectorText","parentSelectors":["restaurant-link"],"selector":".header_links a:nth-of-type(1)","multiple":false,"regex":"","delay":0},{"id":"cuisine","type":"SelectorText","parentSelectors":["restaurant-link"],"selector":".header_links a:nth-of-type(n+2)","multiple":true,"regex":"","delay":0},{"id":"address","type":"SelectorText","parentSelectors":["restaurant-link"],"selector":"div.address","multiple":false,"regex":"","delay":0},{"id":"phone","type":"SelectorText","parentSelectors":["restaurant-link"],"selector":"span.detail.is-hidden-mobile","multiple":false,"regex":"","delay":0},{"id":"remarks","type":"SelectorText","parentSelectors":["restaurant-link"],"selector":"div.restaurants-detail-overview-cards-DetailOverviewCards__cardColumn--1BmXT:nth-of-type(1) div.restaurants-detail-overview-cards-DetailOverviewCards__wrapperDiv--1Dfhf","multiple":false,"regex":"","delay":0},{"id":"meals","type":"SelectorText","parentSelectors":["restaurant-link"],"selector":".restaurants-details-card-DetailsCard__innerDiv--1Imq5 .ui_column div:nth-of-type(3) div.restaurants-details-card-TagCategories__tagText--Yt3iG","multiple":false,"regex":"","delay":0},{"id":"special-diets","type":"SelectorText","parentSelectors":["restaurant-link"],"selector":"div.ui_column:nth-of-type(2) div:nth-of-type(2) div.restaurants-details-card-TagCategories__tagText--Yt3iG","multiple":false,"regex":"","delay":0},{"id":"click-next","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"a.next","multiple":false,"delay":"2000","clickElementSelector":"a.next","clickType":"clickMore","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueText"}]}
Any help would be appreciated
Url: http://example.com
Sitemap:
{id:"sitemap code"}