Use Mozilla/Firefox from the command line like wget

Discuss building things with or for the Mozilla Platform.
Posts: 52
Joined: August 17th, 2005, 3:27 pm

Post Posted October 31st, 2006, 11:08 am

I noticed something very useful w/ Firefox and Mozilla. Once you load a page, you can do a Save As and save a completely and properly locally rendered version of the page to your local machine.

What I'm wondering, are there any command-line options that would let you have firefox load a remote url from the command line and then save it to a given destination? This would make access to the program from PHP very easy, for example.

Seems like the codebase already fully supports the rendering aspect. Just need the options to run from the command line.

Wget is really limited in its full support of css. For the project I'm working on now, just using Mozilla/Firefox to do this would save oodles of development time.


old np
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted October 31st, 2006, 12:57 pm

Posts: 52
Joined: August 17th, 2005, 3:27 pm

Post Posted October 31st, 2006, 1:19 pm

Yeah, I already had this list. There doesn't seem to be any command-line only options, like a save-as option.

firefox "" save-as('/local/copy/')

Something like that.

Posts: 1634
Joined: November 4th, 2002, 8:34 pm
Location: Kyoto, Nippon (GMT +9)

Post Posted November 1st, 2006, 6:26 am

BTW, Fx2 has a new commandline option "search".

Code: Select all
firefox -search foo

Posts: 1
Joined: March 10th, 2020, 9:09 am

Post Posted March 10th, 2020, 9:37 am

Dear geuis,
I know your is now a very old question, but: did you solve it?


User avatar
Posts: 39667
Joined: October 19th, 2007, 1:53 am
Location: The South Coast of N.S.W. Oz.

Post Posted March 10th, 2020, 10:05 am


Please, don't bump these very old threads, as no-one will still be monitoring them.
If you have a problem, start a new thread in the appropriate forum.
Thank you.

Locking due to very old age.
Ancient Amateur Astronomer
Win-7-HP/IntelĀ® DualCore-2.0GHz/500G HDD/4 Gig Ram/550Watt PSU/350WattUPS/Firefox-20.0-62.0-79.0-93.0/T-bird-
(Always choose the "Custom" Install.)

Return to Mozilla Development

Who is online

Users browsing this forum: No registered users and 1 guest