How to scrape contact details (phone numbers or e-mails) from a website

  • by

There is several ways to extract contact details from a website with Content Downloader.

1) Scrape contact details from a list of websites

If you have a list of websites URLs and want to automatically find “contact us” webpage for each website and extract contact details (e-mail or phone number) use [CRAWLER] output template macro.

Contact details scraper

[CRAWLER]
 
{STARTURL}SELF{/STARTURL}
 
{CRAWLDEPTH}2{/CRAWLDEPTH}
{MAXIMAL_QUERIES}10{/MAXIMAL_QUERIES}
{QUERIES_PAUSE}1000{/QUERIES_PAUSE}
 
{TARGET_URL_ANCHORS}Contact us|||Contact{/TARGET_URL_ANCHORS}
{TARGET_PAGE_TITLES}Contact us|||Contact{/TARGET_PAGE_TITLES}
 
{FINISH_RULES}{/FINISH_RULES}
 
{WHAT_TO_FIND}emails{/WHAT_TO_FIND}
 
{EXTRACTPHONES_PARAMS}[LENGTH]10-11[/LENGTH][EXCEPTHTMLANDSCRIPTS][ALLOW][/ALLOW]{/EXTRACTPHONES_PARAMS}
 
{ADDITIONAL_PARAMETERS}


add_mainpage
allow_subdomains
do_not_add_empty_result
can_harvest_non_target_pages

{/ADDITIONAL_PARAMETERS}
 
{RESULT_TEMPLATE}{URL}[CSVCS]{ANCHOR}[CSVCS]{TITLE}[CSVCS]{EMAILS}{/RESULT_TEMPLATE}
{RESULTS_SEPARATOR}[CSVLB]{/RESULTS_SEPARATOR}
 
[/CRAWLER]

Place [CRAWLER] macro to the output template editor and add some URLs of a company websites to main links list (F8) or scrape URLs from Google search results.

Extract contact details from a website


Run scraping procedure (F5). Wait for all data will be extracted and check the result.

Scrape e-mails from a website


2) Scrape e-mails or phone numbers from a single website

Extract URLs with contact details from a website then use scrape sections to get e-mail or phone frome a webpage.


1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

Loading...

Leave a Reply

Your email address will not be published. Required fields are marked *