Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 musing on the Monastery: (9)
As of 2014-12-28 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (178 votes), past polls