VOOZH about

URL: https://apify.com/dainty_screw/advanced-yellowpages-scraper

โ‡ฑ Advanced Yellowpages Scraper ยท Apify


Pricing

$19.99/month + usage

Go to Apify Store

Advanced Yellowpages Scraper

Yellowpages Scraper is a robust tool designed to scrape business information from Yellowpages. It efficiently extracts essential details such as business names, addresses, phone numbers, categories, and more.

Pricing

$19.99/month + usage

Rating

5.0

(2)

Developer

๐Ÿ‘ codemaster devops

codemaster devops

Maintained by Community

Actor stats

11

Bookmarked

137

Total users

2

Monthly active users

2 months ago

Last modified

Share

Yellow Pages Scraper

Yellow Pages Scraper is an Apify actor designed for scraping information from Yellow Pages listings. It allows you to search records based on a combination of search terms and location or a list of URLs. Built on top of the Apify SDK, it can be run both on the Apify platform and locally.

Table of Contents

Input

FieldTypeDescriptionDefault Value
sitestringCountry/site key to target the correct Yellow Pages domain (e.g. us, ghana, nigeria, kenya, uganda)"us"
searchstringQuery string to be searched on the site"Dentist"
locationstringLocation string to search the records in"Los Angeles"
startUrlsarrayList of Request objects that will be deeply crawled. URLs may be absolute or relative to the configured sitenone
siteConfigobjectAdvanced overrides for baseUrl, searchUrlTemplate, or CSS selectors when targeting unsupported domainsnone
maxItemsnumberMaximum number of pages that will be scraped200
extendOutputFunctionstringFunction that takes a Cheerio object and a Cheerio representation of the record element ($, record) as arguments and returns data that will be merged with the default output. More information in Extend Output Function($, record) => { return {}; }
proxyConfigurationobjectProxy settings of the run. If you have access to Apify proxy, you can set { "useApifyProxy": true } to enable proxy usage{ "useApifyProxy": false }

Either the search and location attributes or the startUrls attribute must be set.

Multi-site support

Set site to one of the supported shortcuts to automatically adjust the base domain and default selectors. If the regional Yellow Pages instance uses different markup, provide a siteConfig object with custom selectors or searchUrlTemplate, or fall back to explicit startUrls.

Currently bundled shortcuts: us, ghana, nigeria, kenya, uganda.

Site keyBase domain(s)Notes
ushttps://www.yellowpages.com (also https://www.yp.com)Honour a ~5โ€ฏs crawl delay; listings use .result cards and classic pagination.
ghanahttps://ghanayellowpages.comWordPress-style listings in ul.results-list; low-volume siteโ€”throttle to โ‰ค1 rps.
nigeriahttps://yellowpagesnigeria.comMixed templates (.listing, .result, article); selectors fallback across variants.
kenyahttps://yellow.co.keUses โ€œLoad moreโ€ buttons; follow the link exposed in a.load-more to paginate.
ugandahttps://yellowpagesuganda.comService is unstable (frequent 5xx). Treat as best-effort and consider providing startUrls.

Tip: respect each siteโ€™s robots.txt and Terms. Smaller directories react badly to high concurrencyโ€”stick to 1 request/second unless you know they can handle more.

Output

Output is stored in a dataset. Each item contains information about a record.

{
"name":"The Modern NYC",
"address":"9 W 53rd St, New York, NY 10019",
"phone":"(212) 333-1220",
"website":"https://www.themodernnyc.com",
"rating":4.7,
"reviewSnippet":"A phenomenal dining experience with exquisite food and service. The best modern cuisine in NYC!",
"categories":[
"Restaurants",
"Fine Dining",
"American Cuisine"
],
"url":"https://www.yelp.com/biz/the-modern-new-york"
}

Please note that not all attributes will be present in all results.

Compute Units Consumption

Keep in mind that it is more efficient to run one longer scrape (at least one minute) than multiple shorter ones due to the startup time.

The average consumption is about 0.04 Compute Units per 2000 results scraped.

Extend Output Function

You can use this function to customize the default output of this actor. This function takes a Cheerio object and a Cheerio representation of the record element ($, record) as arguments, allowing you to add or modify attributes as needed. The output from this function will be merged with the default output.

The return value of this function must be an object!

You can return fields to achieve three different things:

  • Add a new field: Return an object with a field that is not in the default output.
  • Change a field: Return an existing field with a new value.
  • Remove a field: Return an existing field with a value of undefined.
($, record)=>{
return{
directionsLink: record.find('.directions').attr('href'),
rating:5,
phone:undefined,
}
}

This example will add a new field directionsLink, change the rating field, and remove the phone field.

Contact

For any questions or support, please contact us at support@example.com.


Connect With Us

You might also like

YellowPages.ca Scraper ๐Ÿ

easyapi/yellowpages-ca-scraper

Scrape business listings from YellowPages.ca including business names, addresses, phone numbers, categories, operating hours and more. Perfect for lead generation and market research.

YellowPages Canada Business Scraper

automation-lab/yellowpages-canada-scraper

Scrape YellowPages.ca business listings with contact details, ratings, and addresses for any Canadian city.

๐Ÿ‘ User avatar

Stas Persiianenko

4

Yellowpages Scraper Pro

aurumworks/yellowpages-scraper-pro

Professional YellowPages Scraper with Email & Social Enrichment

YellowPages USA Extractor

jupri/yellowpages-usa

๐Ÿ’ซ All-in-One YellowPages.com Scraper

YellowPages Thai Business Leads Scraper

mai_amm/yellowpages-thai-business-leads-scraper

Scrapes Thailand YellowPages search, heading, category, and business pages. Extracts business names, addresses, phones, emails, websites, and social links.

YellowPages USA Lead Generator

parsebird/yellowpages-scraper

Scrape business listings from YellowPages.com. Extract names, phone numbers, emails, addresses, ratings, reviews, hours, categories, and websites. Search any industry and US city. Listing and detail modes with Pay-per-event pricing.

YellowPages South Africa Business Lead Generator

lead.gen.labs/yellowpages-south-africa-business-lead-generator

A powerful web scraper designed to extract business information from YellowPages South Africa. If you're looking for leads, contact details, or business insights, this actor helps you quickly gather essential data such as business names, addresses, emails, websites, and descriptions.

31

Yellowpages Email Scraper โ€“ Advanced, Cheapest & Reliable ๐Ÿ“ง๐ŸŽŸ๏ธ

contactminerlabs/yellowpages-email-scraper---advanced-cheapest-reliable

๐Ÿ” Scrape Mass/Bulk Yellowpages Emails Enter your search parameters to collect verified contact emails from Yellowpages profiles, along with profile title, bio, source URL & platform info ๐Ÿ“Š Perfect for lead generation, influencer outreach & data enrichment in tools like Google Sheets or CRMs๐Ÿงฉ

๐Ÿ‘ User avatar

ContactMinerLabs

11

YellowPages USA Business Lead Scraper

delicious_zebu/yellowpages-usa-business-lead-scraper

Effortlessly gather business data from YellowPages (US) based on keywords and locations or directly from filtered URLs. With customizable sorting and pagination options, you can scrape valuable business details like names, addresses, ratings, and moreโ€”perfect for market research and lead generation!

YellowPages Australia Lead Generator

delicious_zebu/yellowpages-australia-lead-generator

Effortlessly scrape detailed business data from YellowPages.com.au by keyword, location, and filters like โ€œOpen Nowโ€ or โ€œPopular.โ€ Fast, flexible, and ideal for lead generation or market research.