Re: scripting lynx
I tried to install LWP and had no success. Is there a
way to install it w/o using the tar ball?
--- Craig Sanders <email@example.com> wrote:
> On Wed, Aug 01, 2001 at 06:08:29PM +0200, Russell
> Coker wrote:
> > I tried both of them with no difference.
> interesing. either should have worked.
> > > or use the LWP modules to make yourself a
> > I may have to do that. Thanks for the
> you may need to set the Referer: header in the HTTP
> request. some cgi
> scripts check the referer...(yes, that's pointless
> and stupid, but it's
> quite common).
> and set the user agent to something like:
> $ua->agent('Mozilla/4.51 (Macintosh; I; PPC)');
> i generally use netscape on mac as my user-agent in
> web robots because:
> a) moronic sites generally don't block netscape on
> (i have seen some sites that block netscape on
> linux with a stupid
> message like "sorry, we don't support your
> unfortunately, brain-dead web design is not yet a
> capital crime)
> b) said moronic sites generally wont output moronic
> IE-specific junk
> if they detect netscape. sometimes. if you're
> btw, the perl HTML::TokeParser module is excellent
> for extracting stuff
> from web pages. i used this (plus LWP::UserAgent,
> HTTP::Cookies, and
> HTTP::Request) to write a wrapper script for
> searching the Melbourne
> Trading Post site, which is one of the most
> brain-dead cretinous sites
> i've ever had the misfortune of having to use.
> there's also HTML::TableExtract for getting data out
> of html tables.
> these modules are all packaged for debian.
> craig sanders <firstname.lastname@example.org>
> Fabricati Diem, PVNC.
> -- motto of the Ankh-Morpork City Watch
> To UNSUBSCRIBE, email to
> with a subject of "unsubscribe". Trouble? Contact
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger