View Full Version : for you E-Mail / HTML guru's -- Help
MrSugar
Aug 26, 2004, 10:46 AM
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!!
jeremy.king
Aug 26, 2004, 11:41 AM
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!!
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.
MrSugar
Aug 26, 2004, 03:27 PM
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.
I asked my friend wade, and he did what you said. Check it out
cat userinfo.txt | grep -E
"([A-Za-z0-9_]|\\-|\\.)+@([A-Za-z0-9_]|\\-|\\.|\\&)+([A-Za-z0-9_]|\\-|\\.)+"
| awk '{print $1}' | grep -v "<mailto"
=) .. I am not a spammer btw
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.