
Yellow Pages Scraper
- petr_cermak/yellow-pages-scraper
- Modified
- Users 2.2k
- Runs 67.2k
- Created by
Petr Cermak
Scrape addresses, phone numbers, categories, and names from Yellow Page listings. Customizable Yellow Pages API to crawl and download all contact data.
To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token. For a more detailed explanation, please read about running Actors via the API in Apify Docs.
# Set API token
API_TOKEN=<YOUR_API_TOKEN>
# Prepare Actor input
cat > input.json <<'EOF'
{
"search": "Dentist",
"location": "Los Angeles",
"maxItems": 200,
"extendOutputFunction": "($, record) => {\n return {};\n}",
"proxyConfiguration": {
"useApifyProxy": false
}
}
EOF
# Run the Actor
curl "https://api.apify.com/v2/acts/petr_cermak~yellow-pages-scraper/runs?token=$API_TOKEN" \
-X POST \
-d @input.json \
-H 'Content-Type: application/json'