Hi there!
I'm facing a problem scraping google maps.
I can scrape the first 20 elements, then I can move to the second page and open the 21st element but at this point the scraper end.
I can't really figure out what I'm doing wrong. It should keep scraping. Can anyone take a look and tell me what I'm doing wrong?
The "next" button in google maps is selected with button[aria-label="Pagina successiva"]. This is "next page" in Italian. You probably need to replace it for it to work in your language.
Thanks in advance!
Url: https://www.google.com/maps/search/?q=agenzia+pubblicitĂ +milano
Sitemap:
{"_id":"googlemaps","startUrl":["https://www.google.com/maps/search/?q=agenzia+pubblicitĂ +milano"],"selectors":[{"id":"activity","type":"SelectorElementClick","parentSelectors":["_root","nextpage"],"selector":"div.widget-pane-content","multiple":true,"delay":"1000","clickElementSelector":"h3.section-result-title span","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueText"},{"id":"shop_name","type":"SelectorText","parentSelectors":["activity"],"selector":"h1.section-hero-header-title","multiple":false,"regex":"","delay":"2000"},{"id":"address","type":"SelectorText","parentSelectors":["activity"],"selector":"[data-section-id='ad'] span.widget-pane-link","multiple":false,"regex":"","delay":"2000"},{"id":"mobile_no","type":"SelectorText","parentSelectors":["activity"],"selector":"div.section-info-action-button.section-info-speak-numeral span.widget-pane-link","multiple":false,"regex":"","delay":"2000"},{"id":"website","type":"SelectorText","parentSelectors":["activity"],"selector":".section-info-underline span.widget-pane-link","multiple":false,"regex":"","delay":0},{"id":"pluscode","type":"SelectorText","parentSelectors":["activity"],"selector":"[data-section-id='ol'] span.widget-pane-link","multiple":false,"regex":"","delay":0},{"id":"nextpage","type":"SelectorElementClick","parentSelectors":["_root","nextpage"],"selector":"div[data-result-index]","multiple":false,"delay":"1000","clickElementSelector":"button[aria-label="Pagina successiva"]","clickType":"clickMore","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueText"},{"id":"type","type":"SelectorText","parentSelectors":["activity"],"selector":"span.section-rating-term span button","multiple":false,"regex":"","delay":0},{"id":"has_business","type":"SelectorText","parentSelectors":["activity"],"selector":"[data-section-id='mcta'] span.widget-pane-link","multiple":false,"regex":"","delay":0},{"id":"GoBack","type":"SelectorElementClick","parentSelectors":["activity"],"selector":"button.section-back-to-list-button span","multiple":false,"delay":"1000","clickElementSelector":"button.section-back-to-list-button span","clickType":"clickMore","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueText"}]}