-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Jeff Holicky wrote: > I am trying to download a page from a specific site. > The page URL is: http://stockcharts.com/charts/adjusthist.html > > First, when you open a browser, say FireFox and go to the site - the top > part (above the dotted line) will appear. Within a few seconds the > bottom will appear which contains the data I need.
<snip> > Somehow it would be nice to have wget call the page - pause - and then > save it. I am seeing retries and timeout and other such time related > options but nothing that would just pause. Another thought would be > issuing a POST command of some sort, and then use a SLEEP option before > I issue the next wget call. That really isn't the problem. Wget always waits until the page is completely loaded before it saves it; that is, it always waits until the server closes the connection, or otherwise indicates that the web page has been completely sent. The problem is that this particular page, after it has been completely downloaded, then uses JavaScript to go and fetch further data, and then display it in the page. There is no way for Wget to get this data and save it as if it were part of the original page. Wget doesn't understand JavaScript, though there has been talk about putting (probably limited) support for it in. Even if it did speak JavaScript, though, it likely would not be able to understand how to modify the web page so as to save the version that you see after the JavaScript has completed its tasks. In short, it is unlikely that Wget will ever really be able to do the job you want it to do. Careful analysis of the JavaScript code that page uses might reveal away to create your own script to generate a similar page; but this is likely to be a moderate amount of work for a fairly technically savvy user. Wish I could give you better news... :-/ - -- Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer... http://micah.cowan.name/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG1kLs7M8hyUobTrERCGWRAKCStyIIsSpH1ljTL6QEZqtvOK+hTACfTGcn OgTWkX5wNQl+pz6JYZNe7Kk= =k0Z+ -----END PGP SIGNATURE-----
