{"id":944,"date":"2020-04-16T10:45:11","date_gmt":"2020-04-16T10:45:11","guid":{"rendered":"http:\/\/webharvy.com\/whblog\/?p=944"},"modified":"2020-04-16T10:45:11","modified_gmt":"2020-04-16T10:45:11","slug":"how-to-scrape-data-from-bing-maps","status":"publish","type":"post","link":"https:\/\/www.webharvy.com\/blog\/how-to-scrape-data-from-bing-maps\/","title":{"rendered":"How to scrape data from Bing Maps ?"},"content":{"rendered":"<p><a href=\"https:\/\/www.webharvy.com\/index.html\">WebHarvy<\/a> is a generic <a href=\"https:\/\/www.webharvy.com\/index.html\">visual web scraping software<\/a> which can be easily configured to extract data from any website. In this article we will see how WebHarvy can be configured to extract data from Bing maps.<\/p>\n<p>Details like business name, address, phone number, website address, rating etc. can be easily extracted from Bing maps listings using WebHarvy. Just like most map interfaces the details are opened in a popup over the map. The following video shows how WebHarvy can be configured to extract the required details.<\/p>\n<p><iframe loading=\"lazy\" title=\"Scraping Bing Maps using WebHarvy\" width=\"1200\" height=\"900\" src=\"https:\/\/www.youtube.com\/embed\/yt0kGPRWOnY?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>As shown in the above video, the <a href=\"https:\/\/www.webharvy.com\/tour1.html#OpenPopup\">Open Popup feature<\/a> of WebHarvy is used to open each listing details and scrape the data displayed. The <a href=\"https:\/\/www.webharvy.com\/tour1.html#ScrapeFollowingText\">Capture following text feature<\/a> is used to correctly select details like address, website, phone number etc. It is recommended to use this method for data selection whenever the data is guaranteed to appear after a heading text.<\/p>\n<p>Sometimes, Bing maps interface displays a &#8216;Website&#8217; button, clicking which you can visit the website of the listed business. In such cases the website address as such will not be displayed in the listings popup.<\/p>\n<p>1. To extract website address in such scenarios, during configuration, highlight and click the entire popup area as shown in the following image.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-946\" src=\"http:\/\/webharvy.com\/whblog\/wp-content\/uploads\/2020\/04\/bingmaps.png\" alt=\"\" width=\"2532\" height=\"760\" \/><\/p>\n<p>2. From the resulting Capture window displayed, select <a href=\"https:\/\/www.webharvy.com\/tour1.html#ScrapeByRegEx\">More Options &gt; Apply Regular Expression<\/a>. Paste and apply the following RegEx string to get the website address.<\/p>\n<p>role=&#8221;button&#8221;\\s*href=&#8221;(http[^&#8221;]*)<br \/>\n\u200b<br \/>\n3. Click the main &#8216;<strong>Capture HTML<\/strong>&#8216; button to capture it.<\/p>\n<h3>Scraping data from Google Maps<\/h3>\n<p>WebHarvy also supports extracting data from Google Maps listings. We have several demonstration videos related to this, which you can watch by following the link below.<\/p>\n<p><a href=\"https:\/\/www.youtube.com\/results?search_query=webharvy+google+maps&amp;sp=CAI%253D\">Google Maps Data Extraction using WebHarvy<\/a><\/p>\n<h3>Try WebHarvy<\/h3>\n<p>We highly recommend that you download and try using the free evaluation version of WebHarvy. To get started please follow the link given below.<\/p>\n<p><a href=\"https:\/\/www.webharvy.com\/articles\/getting-started.html\">Getting started with data extraction using WebHarvy<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WebHarvy is a generic visual web scraping software which can be easily configured to extract data from any website. In this article we will see how WebHarvy can be configured to extract data from Bing maps. Details like business name, address, phone number, website address, rating etc. can be easily extracted from Bing maps listings &#8230; <a title=\"How to scrape data from Bing Maps ?\" class=\"read-more\" href=\"https:\/\/www.webharvy.com\/blog\/how-to-scrape-data-from-bing-maps\/\" aria-label=\"Read more about How to scrape data from Bing Maps ?\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,5,8],"tags":[20,72,150],"class_list":["post-944","post","type-post","status-publish","format-standard","hentry","category-use-case","category-howto","category-webharvy","tag-bing","tag-maps","tag-webharvy"],"_links":{"self":[{"href":"https:\/\/www.webharvy.com\/blog\/wp-json\/wp\/v2\/posts\/944","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=944"}],"version-history":[{"count":0,"href":"https:\/\/www.webharvy.com\/blog\/wp-json\/wp\/v2\/posts\/944\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.webharvy.com\/blog\/wp-json\/wp\/v2\/media?parent=944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webharvy.com\/blog\/wp-json\/wp\/v2\/categories?post=944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webharvy.com\/blog\/wp-json\/wp\/v2\/tags?post=944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}