for you E-Mail / HTML guru's -- Help

Discussion in 'Mac Apps and Mac App Store' started by MrSugar, Aug 26, 2004.

  1. MrSugar macrumors 6502a


    Jul 28, 2003
    Hi, I have a task here at work of taking a webpage that is full of email address, each one seperately embeded in a table. I need to get them into a list so all of them can be emailed at once. Is there any way to scan a webpage and pick up anything that has an email address and none of the other HTML? What are my options here? thanks so much guys!!
  2. jeremy.king macrumors 603


    Jul 23, 2002
    Fuquay Varina, NC
    pretty easily done with regular expressions in perl or a similar language.

    So write a shell script to
    1. curl or wget the page and save to a file
    2. pass that filename to a perl script and let it extract the email addresses and save that list to a file

    With that said, I hope youre not a spammer.
  3. MrSugar thread starter macrumors 6502a


    Jul 28, 2003
    I asked my friend wade, and he did what you said. Check it out

    cat userinfo.txt | grep -E
    | awk '{print $1}' | grep -v "<mailto"

    =) .. I am not a spammer btw

Share This Page