in reply to Re: how do I extract contact data from websites?
in thread how do I extract contact data from websites?
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 carefully.
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 filters.
|Replies are listed 'Best First'.|
(OT: The Cost of Spam) Re(3): How do I extract contact data from websites?
by FoxtrotUniform (Prior) on Jul 15, 2002 at 22:32 UTC
by cjf (Parson) on Jul 16, 2002 at 06:46 UTC
Re: Re: Re: How do I extract contact data from websites?
by chromatic (Archbishop) on Jul 15, 2002 at 16:57 UTC
by cjf (Parson) on Jul 15, 2002 at 22:04 UTC