Why hotels or other businesses on Google Maps?Every hotel benefits from listing its business on Google Maps, with millions of potential customers. A significant part of hotels data comes from owners or managers of the hotels. Another part is supplied by enthusiastic customers. This makes Google Places the best source of truth for hotels and other categories (e.g. restaurants, bars, shopping malls, etc.).
Ok, Google does have it, but how can I get the data?The first thing that comes to mind for those who understand what is scraping is to scrape the data. Google Map scraping, harvesting, or extracting is a process of getting all the information about places (name, address, coordinates, site, phone, working hours, etc.) from the Google Maps site. It automates manual exporting of the data and saves a lot of time for marketing teams.
4 ways to scrape Google placesThere are several ways to get the data into a CSV/excel file:
- write your own script;
- use official API di Google Places;
- hire a frellancer;
- use existing scrapers, like Raschietto di Google Maps.
Using the official API di Google Places will be a good option but might be costly for small teams. Moreover, the fields are limited, but fortunately, you still can get some main data like names, coordinates, addresses, etc.
Hiring a freelancer can work, although you will need to maintain a relationship with them. Make sure the freelancer doesn't disappear after Google updates its security and you want to fix the program.
Using an existing cloud scraper like Raschietto di Google Maps will be the ultimate option, as it will not require any developer's skills and the prices much lower than using the Official API. You can get the results into a CSV/excel file. The results contain a variety of fields, including phone numbers, emails, social links, etc.
The challenge of scraping the hotels from the entire countryIf you open a query like "hotels near NYC, NY, USA" you will see only about 500 places for your search. Since Google Maps limits the number of results to a single search query, you won't see all hotels (unless it's a city with less than 500 hotels).
Therefore, the challenge of getting all the results from a country is to create a list of queries that will search for specific places in some limited areas.
What queries do you need to scrape hotels from the US?The solution will be a combination of different categories (Hotel, Family Hotel, Luxury Hotel, etc.) along with locations split into small areas (neighborhoods, counties, etc.), for example:
- McDonald's, Albany, New York, United States
- McDonald's, Amherst, New York, United States
- Hotels, 04781, CA, US
- Hotels, 04783, CA, US
- Hotels, 04785, CA, US
- Hotels, 04786, CA, US
CategoriesThe entire list of all the categories from Google Places can be found here. In this example, we are using Raschietto di Google Maps, so we don't need to combine the categories with locations now. Moreover, as we are going to use postal codes, it will be enough to use only one main category "hotel":
LocationsThe ideal location will be a postal code with a city and the country name. Using small cities or neighborhoods also will work great. If you are using Outscraper, there is no need to find postal codes or a list of cities. Just select the required regions from the dropdown. You also can use questa vita to get all the locations and use it inside any other app:
To specify the locations manually, use the "custom locations" checkbox and insert the data from any table you have. Make sure you have a country name inside each location. This will help the scraper to find the places regardless of the IP address it's using:
Advanced parametersWhile using Raschietto di Google Maps you can select the language, total places limit, and whether to extract additional data from places' websites or not. Don't forget to select the region to eliminate any other countries that might appear from cities with ambiguous names.
You also might want to use "Drop duplicates" so you will ignore duplicate items inside a single task (the same places from different queries):
Starting the scraping taskOnce everything looks right, click on the "Scrape data" button and validate a few queries by opening them on Google Maps. Make sure the queries are working on Google Maps and you can see the locations.
If you are running the first extraction, it will ask you to verify the account. Follow the instructions on the pop-up page and click "I've performed the actions" once you verified the account. When your task is running, you can open the pagina delle attività to monitor the progress:
ResultsOnce your task is finished, you will receive an email with a link to the data. The file will be available for 30 days to download. You also can download the results from the pagina delle attività. The results file contains the following fields:
Video tutorial on how to scrape Google Maps using Outscraper cloud application
Bisogno di piu?ISCRIVITI ORA e utilizza il codice promozionale: SCARICATORE1 prendere un 10% SPENTO sconto.
Scraper app ► https://app.outscraper.com/googleMaps Pagina del raschietto di Google Maps ► https://outscraper.com/google-maps-scraper Google Maps esamina la pagina del raschietto ► https://outscraper.com/google-maps-reviews-scraper API in tempo reale di Google Maps Places ► https://outscraper.com/google-maps-api