Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Best way to Download and Process a XML file

by tobyink (Abbot)
on Sep 24, 2012 at 22:30 UTC ( #995447=note: print w/replies, xml ) Need Help??

in reply to Best way to Download and Process a XML file

150 GB? Ouch.

AnyEvent::HTTP should allow you to issue an HTTP request, and process it a chunk at a time, while it arrives, without having to save it anywhere.

And XML::Twig can parse XML chunk by chunk.

Pairing the two you ought to be able to do this without temporary files. Exactly how to do it, I can't help you. I have limited experience with AnyEvent::HTTP; and virtually none with XML::Twig.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
  • Comment on Re: Best way to Download and Process a XML file

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2016-10-26 02:47 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (330 votes). Check out past polls.