Google Maps Scraper avatar
Google Maps Scraper
Try for free

No credit card required

View all Actors
Google Maps Scraper

Google Maps Scraper

compass/crawler-google-places
Try for free

No credit card required

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

User avatar

Empty result for crawling one exact place

Open

ethereal_wool opened this issue
16 days ago

Input query and location, the returned result will be empty. Example input: { "deeperCityScrape": False, "includeWebResults": False, "language": "en", "locationQuery": "San Francisco, CA", "maxCrawledPlacesPerSearch": 1, "maxImages": 0, "maxQuestions": 0, "maxReviews": 0, "onlyDataFromSearchPage": False, "scrapeDirectories": False, "scrapeImageAuthors": False, "scrapeResponseFromOwnerText": True, "scrapeReviewId": True, "scrapeReviewUrl": True, "scrapeReviewerId": True, "scrapeReviewerName": True, "scrapeReviewerUrl": True, "searchStringsArray": [ "RH Marin restaurant" ], "skipClosedPlaces": False }

User avatar

Hello,

Thanks for the report. When I type RH Marin restaurant into Google Maps, it redirects me to this single place https://www.google.com/maps/place/RH+Rooftop+Restaurant+Marin/@37.9276136,-122.5087223,13.95z/data=!4m6!3m5!1s0x80859bf2f6cb9a07:0x70009c71ade4bc12!8m2!3d37.929462!4d-122.5134903!16s%2Fg%2F11fwv934jr?entry=ttu

which is not inside San Francisco proper.

That is also what happens in the scraper and the scraper skips it because it does not fit in the map polygon. Do you know any other places it should match?

User avatar

ethereal_wool

15 days ago

I see. But any reason the crawler is like running forever? The log indicates that the crawler just keep checking the same place again and again

User avatar

It is not ideal but it doesn't have a definitive solution. Depending on the location, Google can decide to redirect you to a single place or not. So it still makes sense to check other locations which might not redirect (we don't know upfront). There is more general optimization of the search process coming soon so that would help with this as well.

Developer
Maintained by Apify
Actor metrics
  • 4.1k monthly users
  • 97.8% runs succeeded
  • 2.7 days response time
  • Created in Nov 2018
  • Modified 1 day ago