Scraping latitude, longitude from Yellow Pages listings – GPS Coordinates Extaction

Yellow Pages business listings often display the location (Map Direction) of the business. The location details are displayed on a map interface. But the latitude, longitude values (GPS coordinates) are not displayed on page. However, this information is present inside the HTML code behind the map interface.

Extracting latitude, longitude values

The Capture HTML feature along with Apply RegEx feature of WebHarvy can be used to extract the map coordinates from the HTML code of the page. The following video shows how this can be done. The Regular Expression strings used in the video are copied below.

data-lat=”([^”]*)

data-lng=”([^”]*)

Try WebHarvy

We recommend that you download and try using the free evaluation version of WebHarvy available in our website. To get started, please follow the link below.

Getting started with web scraping using WebHarvy

Leave a Reply

Your email address will not be published. Required fields are marked *