Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Read file after download

by marto (Cardinal)
on Jul 01, 2020 at 18:22 UTC ( [id://11118767]=note: print w/replies, xml ) Need Help??


in reply to Read file after download

What is the data? HTML, XML, MP3? What error are you getting? How do I post a question effectively?.

Replies are listed 'Best First'.
Re^2: Read file after download
by kepler (Scribe) on Jul 01, 2020 at 19:01 UTC

    Hi

    Thanks for answering. No matter the data - it can be json, text file, etc. The process of the download (or for get) the full data is slower than the routine to process it, which must be called after that. I achieved once this with a callback function in a LWP http request, but I am not been able to do repeat it again.

      Do you have some example URLs? How many do you have? Can you show an example of the processing routine? Perhaps Mojo::UserAgent in conjunction with Mojo::Promise (see the Mojo::UA example) or Mojo::IOLoop would help runtime.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-16 04:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found