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 (83)

Pricing

Pay per event

1377

Total users

113K

Monthly users

15K

Runs succeeded

98%

Issues response

3.9 days

Last modified

2 days ago

TH

Incorrect input by the Actor

Closed

talismatic_hawk opened this issue
a year ago

Actor is randomly taking input for a geolocation parameter (state)

ondrejklinovsky avatar

Hi, you need to remove the state parameter from the input if you don't want to use it. state parameter represents a region within a country, e.g. state in US...that's why it's used for geolocation

TH

talismatic_hawk

a year ago

I was not using the state parameter. It is automatically taking state parameter set to Ohio. I dont even have Ohio in the data that I am picking it up from.

TH

talismatic_hawk

a year ago

ip = { "city": row.City, "countryCode": row.Country_Code.lower(), "deeperCityScrape": False, "includeWebResults": False, "language": "en", "maxCrawledPlacesPerSearch": 2, "maxImages": 0, "maxQuestions": 0, "maxReviews": 0, "onlyDataFromSearchPage": False, "postalCode": po_num, "scrapeDirectories": False, "scrapeImageAuthors": False, "scrapeResponseFromOwnerText": False, "scrapeReviewId": False, "scrapeReviewUrl": False, "scrapeReviewerId": False, "scrapeReviewerName": False, "scrapeReviewerUrl": False, "searchMatching": "all", "searchStringsArray": [ row.Name ], "skipClosedPlaces": False }

This is how my input is being formed. I have clearly omitted the state parameter even in the latest run that I have made it is adding Ohio with its own volition.

ondrejklinovsky avatar

I see now what's the issue: you are using task getGMapsData through API. That task has the state set to Ohio. If you don't specify state in your API request, then the value from task is used - that's why actor uses Ohio. So just remove state from the task.

TH

talismatic_hawk

a year ago

Thanks Ondrej.