gosom / google-maps-scraper

scrape data data from Google Maps. Extracts data such as the name, address, phone number, website URL, rating, reviews number, latitude and longitude, reviews,email and more for each place
MIT License
724 stars 93 forks source link

Returns results in San Francisco despite different zip code specified #59

Open R-Rajaie opened 2 weeks ago

R-Rajaie commented 2 weeks ago

Hi,

I am attempting to scrape every Whole Foods in the USA. Frankly, the best way I have figured to do this is to use input queries that are essentially "whole foods near zip xxxxx, whole foods near zip xxxxy, etc" for each zip code. However, when I do this, I get tons of duplicate results that are all around San Francisco. I've tried tweaking zip codes and adding quotes, to no avail.

I think this is because Google Maps' default location opens to San Francisco. In the debug mode it is in incognito, yet still does this.

gosom commented 1 week ago

@R-Rajaie I think I can pass the long/lat you want in the browser. Will try to integrate that