ChrisJ-UK has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I am still building my little crawler.
At the moment I retrieve each page using the Lynx browser:
sub fetch_a_page { my($fetch_this)=@_; # Holds URL of page to be fetched my($fetched_page); # Holds contents of fetched page $fetched_page=`lynx -source $fetch_this`; return $fetched_page; }
I am aware of the LWP module being able to fetch web pages. Is there any actual advantage to be had from using LWP rather than Lynx?
If I shifted the script from the current Unix server to Windows then I would have to include LWP but I don't forsee that ever happening.
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Advatages of LWP?
by davorg (Chancellor) on Jul 28, 2004 at 13:06 UTC | |
by hardburn (Abbot) on Jul 28, 2004 at 13:17 UTC | |
by davorg (Chancellor) on Jul 28, 2004 at 13:24 UTC | |
|
Re: Advatages of LWP?
by hardburn (Abbot) on Jul 28, 2004 at 13:13 UTC | |
|
Re: Advatages of LWP?
by nite_man (Deacon) on Jul 28, 2004 at 13:49 UTC | |
|
Re: Advatages of LWP?
by iburrell (Chaplain) on Jul 28, 2004 at 16:27 UTC | |
|
Re: Advatages of LWP?
by Aristotle (Chancellor) on Jul 28, 2004 at 16:27 UTC |