Scrape Map Location Coordinates from Yellow Pages listings

Yellow Pages listings display Map Directions to business locations. The latitude, longitude values (location coordinates) of businesses can be scraped from the HTML source code of the listing using WebHarvy.

WebHarvy is a visual web scraping software which can be used to scrape data from any website, including various types of Yellow Pages websites. To know how WebHarvy can be used to scrape business contact details like email, phone etc. from Yellow Pages, please follow the link below.

Scraping business contact details (Email, Website, Phone, Address) from Yellow Pages

How to scrape latitude, longitude values?

Though Yellow Pages websites like www.yellowpages.com does not directly display the business map location coordinates (latitude and longitude values), the same can be scraped from the HTML source code of the page as shown in the following video.

The required portion of data (latitude and longitude values) is selected from the HTML source of the page by applying Regular Expressions (RegEx). The RegEx strings used to select latitude and longitude values are given below.

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

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

Location coordinates along with other business details like phone, email, address etc. can be automatically scraped from multiple Yellow Pages listings as shown in the following video.

Try WebHarvy

Download and try the free evaluation version of WebHarvy. To get started, you can refer this guide.

Have questions?

If you have any questions or need assistance, please do not hesitate to contact our support.

Related

  1. 1. Scraping Data from Yellow Pages
  2. 2. Scraping Yellow Pages Australia (www.yellowpages.com.au)
  3. 3. Scraping paginasamarillas.es - Spanish Yellow Pages
  4. 4. Scraping email addresses and phone numbers from Yellow Pages