How to scrape business contact details from Google Maps ?

WebHarvy is a visual web scraper which can be easily configured to scrape data from any website. In this article we will see how WebHarvy can easily scrape business contact details from Google Maps.

WebHarvy can scrape contact details (name, address, website, phone etc.) as well as reviews of businesses displayed on Google Maps. The following video shows the configuration steps which you need to follow to scrape contact details of businesses listed in Google Maps.

The regular expression strings used in the above video to scrape phone number, website and address are given below.

Phone:\s*([^"]*)

Website:\s*([^"]*)

Address:\s*([^"]*)

The JavaScript code used for pagination is given below.

list = document.getElementsByClassName('m6QErb DxyBCb kA9KIf dS8AEf ecceSd')[0].children[0];
list.children[list.childElementCount-1].scrollIntoView();

Try WebHarvy

To know more we highly recommend that you download and try using the free evaluation version of WebHarvy. To get started please follow the link below.

Getting started with web scraping using WebHarvy