Scraping Yellow Pages

Yellow Pages websites can be scraped for local business contact details like name, email address, phone number, website, location coordinates, opening hours, rating and reviews etc.

scraping yellow pages, yellow pages scraper

What is Yellow Pages Scraping?

Yellow Pages Scraping is the process of automatically extracting business contact details and other data from Yellow Pages listings. Based on location there are various flavors of Yellow Pages websites.

  1. (US)
  2. (Australia)
  3. (New Zealand)
  4. (Canada)
  5. (Singapore)
  6. (UK)
  7. (Spanish)
  8. (France)

The following are the list of data which can be scraped from yellow pages listings.

  1. 1. Business Name
  2. 2. Street Address
  3. 3. State, Postal Code
  4. 4. Phone Number
  5. 5. Map Coordinates / Business Location
  6. 6. Email
  7. 7. Website
  8. 8. Business Description
  9. 9. Rating and Reviews
  10. 10. Opening hours

Which software can be used to scrape Yellow Pages?

To scrape data from Yellow Pages, you can either use a software built specifically for the purpose (like YellaBot, YPSpider etc.) or use a general-purpose web scraping software (like WebHarvy, ParseHub, OctoParse etc.). Software which are built exclusively for Yellow Pages scraping are called Yellow Pages Scrapers.

The advantage of using a YP specific software is that it will be easy to use, but with limited flexibility. If you use a visual web scraper like WebHarvy you can use it to scrape data from any type of Yellow Pages website (as well as from any other website) with a lot of flexibility in selecting the required data and automating / scheduling the process.

How to scrape data from Yellow Pages?

We will now see how WebHarvy can be used to easily scrape data from Yellow Pages listings. First, you will need to download and install WebHarvy in your computer.

Once installed, you can open WebHarvy and load any website within its configuration browser. For our requirement, we will load the Yellow Pages listings page from which we need to scrape data.

yellow pages scraping

In the above example we have loaded and searched for accountants in New York. To select the data which we require to scrape from this listing, click on the Start Configuration button.

In configuration mode, as you hover the mouse pointer over various items (text or image) displayed on the page, they will be highlighted in yellow. Just click over the text which you need to scrape. WebHarvy will display a Capture window.

One thing to note here is that, it is always recommended to skip over the sponsored listings (ads) displayed at the top of the page and select data from the first non-ad listing.

select data to scrape from yellow pages

The capture window has various options. Click on the 'Capture Text' option to capture the text of selected item. In the next window, you can provide a name for the selected data field. Then, click the OK button. WebHarvy will automatically parse and select similar items from subsequent listings and display them in the Captured Data Preview pane. By following this method, you can select details like name, address, phone number etc. from the page.

yellow pages scraped data preview

To scrape the data which we have selected from multiple pages of listings, scroll down to the bottom of the page and click on the link to load the next page. From the Capture window displayed, select the Set as Next Page link option.

You can also configure WebHarvy to follow each listing link to load its details page and scrape additional data.

Once all required data has been selected from the page, click the stop configuration button in the top menu. You can now optionally save the configuration.

To start mining data using the configuration which we created, click on the 'Start Mine' button. This will bring up the Miner window. Click the Start button to start mining.

WebHarvy will load the starting page for which we created the configuration and start scraping data from it. It will then load subsequent listing pages and repeat the same process. As mining proceeds, the scraped data will start appearing in the Miner window data table.

scraping yellow pages

Once mining is finished, you can save the mined data to a file or database. Various file formats (XML, CSV, Excel, TSV, JSON) and databases (MS SQL, My SQL, Oracle) are supported.

Yellow Pages Scraping Video

The following video shows in detail how WebHarvy can be configured to scrape data from Yellow Pages ( listings.

Try WebHarvy

WebHarvy is free to try. We recommend that you download and try the free evaluation version of WebHarvy. To get started please refer this guide.

Have Questions?

If you have any questions regarding WebHarvy or need assistance in configuring WebHarvy, please do not hesitate to contact our technical support team.

Related Articles

  1. 1. Scraping business location coordinates (latitude and longitude) from Yellow Pages
  2. 2. Scraping Yellow Pages Australia (
  3. 3. Scraping - Spanish Yellow Pages
  4. 4. Scraping email addresses and phone numbers from Yellow Pages