Email and Phone Number Scraper
by proscraper
Scrape emails and US phone numbers from a list of websites automatically. Just provide URLs and a crawl depth to build contact lists for sales and marketing.
Opens on Apify.com
About Email and Phone Number Scraper
Need to pull contact info from websites but tired of doing it manually? I've been there. This scraper takes a list of URLs and digs through the pages for you, pulling out email addresses and U.S. phone numbers. You just feed it your starting links and tell it how deep to crawl—like, "check the homepage and any pages linked from it." It then gives you a clean list of what it finds. I use it for building prospect lists when I'm researching companies or trying to find the right person to reach out to. It's straightforward: no complex setup, just point it at your target sites. The output is super practical for sales outreach, marketing campaigns, or just gathering leads without the copy-paste grind. It handles the tedious part so you can focus on actually connecting with people.
What does this actor do?
Email and Phone Number Scraper is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
Email and Phone Number Scraper
An Apify Actor template for scraping contact information from a single web page. It's built with Python and designed for lead generation and automation tasks. You provide a URL, and the Actor extracts email addresses and phone numbers found in the HTML, saving the results to a structured dataset.
Overview
This Actor is a starting point for scraping contact data. It uses HTTPX to fetch a webpage and Beautiful Soup to parse the HTML, searching for patterns that match email addresses and phone numbers. The scraped data is stored in an Apify dataset for easy access and integration. You can modify the parsing logic to target different data or adjust the search patterns.
Key Features
- Apify SDK for Python: Toolkit for building and running Actors on the Apify platform.
- Input Schema: Validates input configuration, such as the target URL.
- Structured Output: Stores results in a dataset where each item contains the extracted emails and phone numbers.
- HTTPX: Handles asynchronous HTTP requests to fetch page content efficiently.
- Beautiful Soup: Parses HTML to find and extract the target data.
Input/Output
Input (via Actor.get_input())
The primary input is a url (string) pointing to the webpage to scrape. The input schema can be extended to include additional parameters like custom regex patterns.
Output (via Actor.push_data() and dataset)
The Actor outputs items to a dataset. Each item typically contains:
* url: The source page.
* emails: A list of email addresses found.
* phones: A list of phone numbers found.
Example dataset item:
{
"url": "https://example.com/contact",
"emails": ["contact@example.com", "support@example.com"],
"phones": ["+1-555-123-4567", "(555) 987-6543"]
}
How to Use
- Configure Input: In the Actor's input, set the
urlfield to the webpage you want to scrape. - Run the Actor: Start the run. The Actor will:
- Fetch the HTML from the provided URL using
httpx.AsyncClient().get(url). - Parse the content with
BeautifulSoup(response.content, 'lxml'). - Extract data using search patterns for emails and phone numbers.
- Save the structured results to the run's dataset.
- Fetch the HTML from the provided URL using
- Access Results: Retrieve the data from the dataset via the Apify console, API, or integrations.
Local Development
To develop locally, use the Apify CLI to pull the Actor code:
-
Install the CLI:
bash npm -g install apify-cli
or
bash brew install apify-cli -
Pull the Actor using its unique name or ID:
bash apify pull <ActorId>
Resources
Categories
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try Email and Phone Number Scraper now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- proscraper
- Pricing
- Paid
- Total Runs
- 144
- Active Users
- 17
Related Actors
🏯 Tweet Scraper V2 - X / Twitter Scraper
by apidojo
Google Search Results Scraper
by apify
Instagram Profile Scraper
by apify
Tweet Scraper|$0.25/1K Tweets | Pay-Per Result | No Rate Limits
by kaitoeasyapi
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support