Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 perusing the Monastery: (7)
As of 2014-08-02 09:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (55 votes), past polls