Google Maps Scraper avatar
Google Maps Scraper

Pricing

Pay per event

Go to Store
Google Maps Scraper

Google Maps Scraper

Developed by

Compass

Compass

Maintained by Apify

Extract data from thousands of Google Maps locations and businesses. Get Google Maps data including reviews, reviewer details, images, contact info, opening hours, location, prices & more. Export scraped data, run the scraper via API, schedule and monitor runs, or integrate with other tools.

4.2 (90)

Pricing

Pay per event

1500

Total users

120K

Monthly users

17K

Runs succeeded

97%

Issues response

3.9 days

Last modified

a day ago

EC

Not receiving crawling information from Google maps list

Closed

ec1905 opened this issue
10 months ago
LI

lilyrec

10 months ago

I'm having this issue with my Google Maps lists too. When I tried to scrape that Google Maps list, I saw these errors in the logs:

Errors: 2024-08-27T12:08:08.389Z WARN PuppeteerCrawler: Reclaiming failed request back to the list or queue. Operation failed. Error detail: Failed to extract public places list data: SyntaxError: Unexpected token u in JSON at position 0 2024-08-27T12:08:08.390Z at extractPublicPlacesListData (file:///home/myuser/dist/src/crawlers/utils.js:92:15) {"id":"BJBBUHdrJoT40dn","url":"https://www.google.com/maps/@38.8827376,19.8323117,3z/data=!4m6!1m2!10m1!1e1!11m2!2sXvdvME6wRfWDB3kQnXFOLw!3e3?entry=ttu&g_ep=EgoyMDI0MDgyMS4wIKXMDSoASAFQAw%3D%3D&hl=en","retryCount":1} 2024-08-27T12:08:14.766Z INFO [Status message]: You can check all currently scraped places laid out on a map on: https://api.apify.com/v2/key-value-stores/Dw4dd0hgXjZnJ1iN8/records/results-map

2024-08-27T12:09:51.817Z ERROR PuppeteerCrawler: Request failed and reached maximum retries. Error: Operation failed. Error detail: Failed to extract public places list data: SyntaxError: Unexpected token u in JSON at position 0 2024-08-27T12:09:51.818Z at extractPublicPlacesListData (file:///home/myuser/dist/src/crawlers/utils.js:92:15) 2024-08-27T12:09:51.818Z at enqueueAllPlaceDetails (file:///home/myuser/dist/src/enqueue_places.js:228:26) 2024-08-27T12:09:51.819Z at async ErrorSnapshotter.tryWithSnapshot (file:///home/myuser/dist/src/helper-classes/error-snapshotter.... [trimmed]

milunnn avatar

Hi,

We apologize for the inconvenience. There seems to be an issue with the URL being in a slightly different format than we expect, resulting in this error. We are working on a fix.

In the meantime, you should be able to use this modified URL for your run:

https://www.google.com/maps/@38.8827376,19.8323117,3z/data=!4m3!11m2!2sXvdvME6wRfWDB3kQnXFOLw!3e3?entry=ttu&g_ep=EgoyMDI0MDgyMS4wIKXMDSoASAFQAw%3D%3D

EO

ec1905-owner

10 months ago

Thanks! In the future, if there's another issue with the URL how can I modify it to run?

milunnn avatar

Hey,

That is sadly not that easily answerable question since there are many edge cases. But for this particular case, I replaced the !4m6!1m2!10m1!1e1!11m2 part with !4m3!11m2.

Hope that helps.

LI

lilyrec

10 months ago

Thank you! Could you also help with modify this url as well?

Seems to having some trouble crawling the information.

https://www.google.com/maps/@24.0814236,119.7529974,8z/data=!4m6!1m2!10m1!1e1!11m2!2sSxCy7qp9mlbAYQ0BYx7IRQgvebqvtA!3e1?entry=ttu&g_ep=EgoyMDI0MDgyMS4wIKXMDSoASAFQAw%3D%3D

LI

lilyrec

10 months ago

I see that you reply in a separate message, thank you for the assistant!