{"id":1030,"date":"2020-12-18T11:53:12","date_gmt":"2020-12-18T11:53:12","guid":{"rendered":"https:\/\/www.webharvy.com\/blog\/?p=1030"},"modified":"2022-08-05T11:08:18","modified_gmt":"2022-08-05T11:08:18","slug":"how-to-scrape-business-contact-details-from-google-maps","status":"publish","type":"post","link":"https:\/\/www.webharvy.com\/blog\/how-to-scrape-business-contact-details-from-google-maps\/","title":{"rendered":"How to scrape business contact details from Google Maps ?"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.webharvy.com\/index.html\" rel=\"sponsored nofollow\">WebHarvy<\/a> 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. <\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Scraping Google Maps | Address, Website, Phone | WebHarvy (Aug 2022)\" width=\"1200\" height=\"675\" src=\"https:\/\/www.youtube.com\/embed\/PyWE8d0P6kA?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>The <a href=\"https:\/\/www.webharvy.com\/articles\/regex.html\" target=\"_blank\" rel=\"noreferrer noopener\">regular expression strings<\/a> used in the above video to scrape phone number, website and address are given below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Phone:\\s*(&#91;^\"]*)\r\n\r\nWebsite:\\s*(&#91;^\"]*)\r\n\r\nAddress:\\s*(&#91;^\"]*)\r\n<\/code><\/pre>\n\n\n\n<p>The JavaScript code used for pagination is given below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>list = document.getElementsByClassName('m6QErb DxyBCb kA9KIf dS8AEf ecceSd')&#91;0].children&#91;0];\r\nlist.children&#91;list.childElementCount-1].scrollIntoView();<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Try WebHarvy<\/h2>\n\n\n\n<p>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. <\/p>\n\n\n\n<p><a href=\"https:\/\/www.webharvy.com\/articles\/getting-started.html\">Getting started with web scraping using WebHarvy<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8230; <a title=\"How to scrape business contact details from Google Maps ?\" class=\"read-more\" href=\"https:\/\/www.webharvy.com\/blog\/how-to-scrape-business-contact-details-from-google-maps\/\" aria-label=\"Read more about How to scrape business contact details from Google Maps ?\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,7],"tags":[155],"class_list":["post-1030","post","type-post","status-publish","format-standard","hentry","category-howto","category-web-scraping-workshop","tag-google-maps"],"_links":{"self":[{"href":"https:\/\/www.webharvy.com\/blog\/wp-json\/wp\/v2\/posts\/1030","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webharvy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webharvy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webharvy.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webharvy.com\/blog\/wp-json\/wp\/v2\/comments?post=1030"}],"version-history":[{"count":2,"href":"https:\/\/www.webharvy.com\/blog\/wp-json\/wp\/v2\/posts\/1030\/revisions"}],"predecessor-version":[{"id":1340,"href":"https:\/\/www.webharvy.com\/blog\/wp-json\/wp\/v2\/posts\/1030\/revisions\/1340"}],"wp:attachment":[{"href":"https:\/\/www.webharvy.com\/blog\/wp-json\/wp\/v2\/media?parent=1030"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webharvy.com\/blog\/wp-json\/wp\/v2\/categories?post=1030"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webharvy.com\/blog\/wp-json\/wp\/v2\/tags?post=1030"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}