pmuskie has asked for the wisdom of the Perl Monks concerning the following question:

I just want to download some stock data (i.e. High, Low, Price ) from this site:

http://money18.on.cc/eng/info/liveinfo_quote.html?symbol=1

The problem is these data are generated by javascript. When I just use the above link to download into a file, I just can't see those figures in there. (even view source from Firefox can't see them).

Could anyone give me some hint how to get it done?

Thanks!

Replies are listed 'Best First'.
Re: Download web data
by roboticus (Chancellor) on Oct 15, 2010 at 12:17 UTC
      roboticus,
      Thanks for the prompt reply!
      Do you have more info for the first opton?
      cheers!

        Reading is something you have to do with your eyes. Emulating is something you have to do with your brain.

        The Firefox Live HTTP Headers extension is invaluable for this kind of thing. You can watch the requests and responses go by and then write LWP or WWW::Mechanize code to duplicate the sequence.

        There are recording proxies that are supposed to do this automatically but I've never had much successs in getting them to work.