To retrieve the web pages, and parse them for email addresses you should take a look at
the following modules:
- LWP::Simple - To grab the web pages.
- HTML::TokeParser - To parse the HTML.
- Email::Find - To find email addresses in plain text.
- Email::Valid - To validate the email addresses.
- Mail::Bulkmail - For sending out emails.
As for mail addresses, they'll be a lot harder to find due to the number of possible
formats they could be in. Try looking for keywords in certain orders (e.g. number, street,
city). This will be very difficult and unless you're willing to spend a lot of time
on it you probably won't have much luck.
Now, as one of our illustrious members articulately observed,
SPAM is bad. It is also, in all probability,
not the best way to go about obtaining new customers. Chances are you'll only get
blacklisted and obtain a less than desireable reputation. So please consider your methods
And some extra reading:
That said, I find the Anti-Spam fanatics far more annoying than
spam. Flaming a few possible (there are many false postives) spammers on a Perl forum
won't do anything to solve the problem. If you want to be productive, write better