Extract email address from a page
pemmy20001
![]()
- Joined: Aug 7, 2010
- Posts: 12
Hi there I am trying to find a way to extract email addresses from a series of webpages and save them in a text file.
Can someone help in how can I do it?
Thanks for your time.
Pemmy :)
hjaeger
![]()
- Joined: Jul 1, 2010
- Posts: 36
Pemmy,
you can use a regular expression to extract email addresses - to find out more about regular expressions, have a read through the "sticky thread" on this topic (at the top of the "How do I automate?" section)
I've made an attempt at a script that downloads a webpage, extracts the email addresses and append them to a text file; please find it attached. I used the product Expresso to generate the regular expression string
FYI - I am using the beta version (3.1.0.519) of WinAutomation, so you will not be able to import the script if you're using the released version; therefore I have attached a screenshot of the script as well
Cheers,
Henrik
pemmy20001
![]()
- Joined: Aug 7, 2010
- Posts: 12
hjaeger
![]()
- Joined: Jul 1, 2010
- Posts: 36
Yes, this script will run in the background (as it doesn't use keystrokes or mouse clicks) - and yes, you should be able to feed the script a list of URLs with a "For Each" Loop
Cheers,
Henrik
keong
![]()
- Joined: Aug 19, 2010
- Posts: 1
Hi hjaeger,
I was thinking of getting all email addressess from yellowpages (go into a category, click to visit the website and gather the email) and save all the email addresses into different categories.
Does this script works as well?
Thanks!
Keong