On Wed, 4 Aug 2004, Sanjay Arora wrote:
I am using RH9, postgreSQL and perl5. I would like to get my system to automatically visit a site, go to the login url, login, browse to the mail/messages link and get the messages one by one and save them in a postgreSQL database.
Okay. Do you have any code do do any of this?
If not, take a look at the CPAN modules DBI (you should already have this), DBD::Pg (the PostgreSQL database driver), and LWP (available most easily in cpan as Bundle::LWP). Also, WWW::Mechanize might be useful. For sending mail there's many options, but Mail::Simple might be easy.
Get these installed using the CPAN shell, then look over the docs & try some starter code. If you hit any stumbling blocks, let the list know.
I would like to do this with multiple sites. Is this possible with perl? What modules do I need? Are any readymade scripts that can be adapted to my needs available?
Yes this is all possible, and done regularly by many people. The catch is that everyone who does this has slightly different needs, so code for doing all of this may not be available in one place. So, like I say, look over the documentation for these modules and try some code to do aspects of your project, and then start plugging it all together.
-- Chris Devers [EMAIL PROTECTED] http://devers.homeip.net:8080/blog/
np: 'Mr. Lucky' by Henry Mancini from 'The Best Of Mancini'
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>