Register
It is currently Thu Feb 22, 2018 10:35 am

"save as" in firefox from bash script


All times are UTC


Post new topic Reply to topic  [ 4 posts ] 
Author Message
 PostPosted: Wed Aug 21, 2013 8:41 am   
New Member

Joined: Wed Aug 21, 2013 8:36 am
Posts: 2
I want to save the content of a dynamic generated webpage in a text file for further processing from a bash script under Linux. I`m not interested in the source code; all I want is the output of that page to be saved locally (correspondes to Strg+S in firefox). I tried wget, curl... and all that stuff - but this saved only the static part of the page.
Is there a simple way to save this in a file from command line using firefox or any other browser ?


Top
 Profile  
 PostPosted: Wed Aug 21, 2013 3:39 pm   
Ultimate Member
User avatar

Joined: Tue Jun 29, 2004 1:56 am
Posts: 2277
Location: Queen Charlotte B. C. Canada
Josh wrote:
Is there a simple way to save this in a file from command line using firefox or any other browser ?

Not possible :(

Dynamic generated webpages are all processed on the server, the only thing you are sent is the single static page that is relevant at the time.

_________________
SuSE 8.0, 8.2, 9.0, 9.1, 9.2, 9.3, 10.0, 10.1, 10.2, 10.3, 11.0, 11.1, 11.2, 11.3, 11.4, 12.0, 12.1, 12.2, 12.3
Live CDs Mepis 8.0, Puppy 5.1, netbook- Zenwalk 6.2


Top
 Profile WWW  
 PostPosted: Wed Aug 21, 2013 6:02 pm   
New Member

Joined: Wed Aug 21, 2013 8:36 am
Posts: 2
Thank' s for your reply. Does this mean, that there is no way to place a browser's "save-as-text-file" - function in a script ?


Top
 Profile  
 PostPosted: Wed Aug 21, 2013 6:49 pm   
Ultimate Member
User avatar

Joined: Tue Jun 29, 2004 1:56 am
Posts: 2277
Location: Queen Charlotte B. C. Canada
Josh wrote:
I tried wget, curl... and all that stuff - but this saved only the static part of the page.

That's all the server sends you, it may be different for every request but that's all you get.

_________________
SuSE 8.0, 8.2, 9.0, 9.1, 9.2, 9.3, 10.0, 10.1, 10.2, 10.3, 11.0, 11.1, 11.2, 11.3, 11.4, 12.0, 12.1, 12.2, 12.3
Live CDs Mepis 8.0, Puppy 5.1, netbook- Zenwalk 6.2


Top
 Profile WWW  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


Powered by phpBB © 2012 phpBB Group
© 2003 - 2012 USA LINUX USERS GROUP