Welcome, Guest. Please Login.
IRobotSoft Robot
08/04/20 at 13:24:52
News: Welcome to the IRoboSoft Visual Web Scraping and Web Automation forum.
Home Help Search Login

Pages: 1
Send Topic Print
How to extract emails from a single Web page (Read 2819 times)
IRobotSoft Administrator
IRobotSoft Administrator

IRobotSoft, the Best
Internet Robot

Posts: 1608
Gender: male
How to extract emails from a single Web page
11/21/10 at 00:07:40
Some web pages has emails generated dynamically via JavaScript, and you cannot use a regular emailscraper to extract emails from the page.   You will need to create a customized scraper for it. Here are steps:    
Create a new task, with an action Go to URL: http://www.xxxx.com/page.html.  Then, right-click the action and add two events with:  
Event: After each tuple; Name: emails; Value: get_emails(TargetPage, '%n <%m>\r\n')
Event: After each tuple: Value: appendFile('emails.txt', emails);
Then run the task and you will get the emails in emails.txt.
(For regular web page and with irobotsoft emailscraper.irb (paid version), you can simply use site search and, at the interface, enter the URL and an arbitrary pattern such as 'aaa' to let it stop after the first page.)
Back to top

The Administrator.
WWW   IP Logged
Pages: 1
Send Topic Print