Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

•Re: Combine LWP::Simple with XML::LibXML to download Go exercises

by merlyn (Sage)
on Sep 19, 2003 at 15:24 UTC ( #292679=note: print w/ replies, xml ) Need Help??


in reply to Combine LWP::Simple with XML::LibXML to download Go exercises

If I'm not mistaken, you can drop the LWP::Simple from this program entirely. Instead of calling parse_html_string with the output of get on the URL, pass the URL directly to html_file, as I illustrate (somewhat obscured) in "Get O'Reilly's top 25 into Template Toolkit". The XML::LibXML engine can fetch URLs directly, because it's needed to validate DTDs.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: Combine LWP::Simple with XML::LibXML to download Go exercises

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://292679]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2016-06-30 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (396 votes). Check out past polls.