PDA

View Full Version : How can I safe a javascript generated page to an html file from a linux command line?


istrebitjel
10-11-2007, 10:31 AM
Hi,
I have a javascript/ajax page that I'd like to save as the generated html to a file. URL
http://www.neaveru.com/digg/stats/kevinrose/max_comments/0/days/14

Is there a way to do that? I haven't found any firefox command-line like that.
Thanks!
safe?? save! ;)
sorry, I want to run this in a cron... so I can't click ;)

Jake Cigarâ„¢
10-11-2007, 03:15 PM
from FF & a cron, no way.

there might be some lynx variant or other 'get' tool that does JavaScript.

http://www.google.com/search?q=linux+JavaScript+command+line


you could capture the data that the ajax gets, and save that to a file... but not the graph.

is it your site? a little cgi program instead would be able to capture the graph.

I could do it in Safari on a mac with applescript!