Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 having an uproarious good time at the Monastery: (13)
As of 2015-07-01 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (10 votes), past polls