Google Maps Scraper avatar

Google Maps Scraper

Try for free

No credit card required

Go to Store
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.

Do you want to learn more about this Actor?

Get a demo
ES

I want to scrape data for Riyadh city, but I ended up scraping data for the entire Riyadh province.

Closed

entire_sleep opened this issue
a month ago

Considering the vast area of Riyadh province, how can I refine my scraping to target specifically within the city of Riyadh?

ondrejklinovsky avatar

Hey,

thanks for the question. By default, Nominatim API gives us the Riyadh province. If you wish to scrape Riyadh the city, you should use geolocation options:

1"locationQuery": "",
2    "city": "Riyadh",
3    "countryCode": "sa"

Note that you need to leave locationQuery empty so that it's not used instead of city and countryCode.

Unfortunately Nominatim API doesn't have a polygon for the city borders. They have only a point, which is not ideal because the scraper cannot know the exact area it's supposed to scrape. To solve this, currently it's best to create your own city polygon in geojson format and pass that to customGeolocation. Take a look at this article for more information. Let me know if you have any questions.

Developer
Maintained by Apify

Actor Metrics

  • 3k monthly users

  • 695 stars

  • 98% runs succeeded

  • 2.9 days response time

  • Created in Nov 2018

  • Modified a day ago