It's possible to save page page with Firefox CLI?

Something like:

firefox -new-tab http://google.com -save-page /path/
  • Any particular reason to use firefox? there are other CLI alternatives that are great for saving web pages. Even whole sites. – Martín Canaval Jan 25 '13 at 18:50
  • Any alternatives are welcome, single requirement they must available on Linux – cetver Jan 25 '13 at 18:53

I'm not aware of any really simple way to do this. You might consider looking into a browser automation tool like Selenium. Alternatively, a more general automation tool like Sikuli might be workable as well (this is actually likely to be easier than using Selenium, depending on exactly what you want to do).

| improve this answer | |

According to the list of Firefox command line arguments, there is no such thing.

There is a command line tool called wget (link is for Windows version, I suppose you are using Windows? If not, it's already included in every Linux distribution) which was made for exactly this purpose. Run it like this:

wget.exe -P /path http://google.com
| improve this answer | |
  • 1
    wget cannot execute javascript – cetver Jan 25 '13 at 18:45
  • I didn't know that was a requirement, I don't know then. – chrki Jan 25 '13 at 18:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.