Skip to main content

Scrape leads from YellowPages

Updated over a month ago

👉 Octoparse offers pre-built Task Templates for Yellowpages.

For more control, follow these steps to build a Yellowpages scraper from scratch. We’ll use this sample URL:
🔗 https://www.yellowpages.com/search?search_terms=Anesthesiologists&geo_location_terms=New+York

The main steps are shown in the menu on the right, and you can download the sample task file here.


1. Open the Target Webpage

  • Enter the URL on the home page and click Start


2. Auto-Detect & Create Workflow

  • Click Auto-detect webpage data and wait for analysis.

    066.gif
  • Disable "Add a page scroll" option and Create Workflow.

    13.png

Data Preview & Cleanup (Optional):

  • Review extracted fields in Data Preview.

  • Remove unnecessary fields (click "..." → Delete).

  • Rename fields by double-clicking headers.


3. Scrape Detail Pages (Optional)

To extract deeper insights (e.g., contact details, services):

  • Select "Select subpage URL" from the Tips panel.

  • Choose the correct link field from the dropdown (verify in Data Preview).

  • Confirm the selection.


4. Extract Detail Page Data

  • Use the "Text" tool to select data (e.g., phone, address).

  • Repeat for all required fields and rename them.


5. Adjust Scraping Speed

To avoid IP blocks:

  • Click the Extract Data action.

  • Enable "Wait before action" (set to 5–10 seconds).

    15.gif


6. Run the Task

  • Save the task.

  • Click Run → Choose Standard Mode (local device) or Cloud Mode (premium users).


Here is the sample output:

wewewe.png
Did this answer your question?