Extract email address from a page

pemmy20001

  • Joined: Aug 7, 2010
  • Posts: 12

Fri 8/13/2010 - 16:47

 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 :)

#1

hjaeger

  • Joined: Jul 1, 2010
  • Posts: 36

Sat 8/14/2010 - 10:38

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

GetEmailAddresses.waj WinAutomation_GetEmailAddresses.png

#2

pemmy20001

  • Joined: Aug 7, 2010
  • Posts: 12

Sat 8/14/2010 - 14:48

Hey hjaeger, Thanks a lot for your reply. The image would be helpful I will try it tomorrow. Just another thing will this code run in the background? And also can it be done with a list of urls put in a loop and foreach url do this. If you could please show me how to do that it will be amazing.. Thanks a lot for your help. Pemmey :)

#3

hjaeger

  • Joined: Jul 1, 2010
  • Posts: 36

Sun 8/15/2010 - 12:44

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

#4

keong

  • Joined: Aug 19, 2010
  • Posts: 1

Thu 8/19/2010 - 12:25

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

#5
Not a member yet? Register

Copyright 2013 - Softomotive Ltd