------------------------------------------------
On Wed, 6 Aug 2003 21:07:50 -0700 (PDT), wendy soros <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I am a new perl user. I have a question of obtaining
> web page contents with perl. Hope you can help me.
> 
> Here is my question: how can I use perl to access a
> webpage, fill in some search parameters, pull out
> parts of the search results returned that I really
> need and save them in a file? 
> 
> For example, a web site has some information about a
> bunch of companies for various years. After one puts
> in the company name and the relevant years, one would
> be directed to another page that has the text contents
> needed. 
> 
> I have the file containing the company names and the
> years I want. Since the number of companies I have is
> large, it would be really nice to have perl pull out
> the contents for me. Could it do this? How? What if I
> need to access the web page through a proxy server? 
> 
> Once again, I am new to the perl community and I am
> sorry if the question is too simple. But I do need you
> help. Thanks a lot.
> 

"No job is to small, no fee is to small!" -Ghostbusters

You should check out the LWP set of modules from CPAN. It makes this kind of task 
bearable and should provide all of the functionality you need. 

http://search.cpan.org/author/GAAS/libwww-perl-5.69/lib/LWP.pm

In particular you may want to start with the lwp-cook documentation as it provides 
good working examples.  Have a read through the docs, give it a stab and come back 
with questions when you get stuck...

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to