Use Mozilla/Firefox from the command line like wget

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

Use Mozilla/Firefox from the command line like wget

Post by geuis »

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.

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

Post by old np »

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

Post by geuis »

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

firefox "http://www.mozilla.org" save-as('/local/copy/')

Something like that.
Torisugari
Posts: 1634
Joined: November 4th, 2002, 8:34 pm
Location: Kyoto, Nippon (GMT +9)
Contact:

Post by Torisugari »

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

Code: Select all

firefox -search foo
giopao314
Posts: 1
Joined: March 10th, 2020, 9:09 am

Re: Use Mozilla/Firefox from the command line like wget

Post by giopao314 »

Dear geuis,
I know your is now a very old question, but: did you solve it?
User avatar
LIMPET235
Moderator
Posts: 39936
Joined: October 19th, 2007, 1:53 am
Location: The South Coast of N.S.W. Oz.

Re: Use Mozilla/Firefox from the command line like wget

Post by LIMPET235 »

giopao314,

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-10-H/64 bit/500G SSD/16 Gig Ram/450Watt PSU/350WattUPS/Firefox-115.0.2/T-bird-115.3.2./SnagIt-v10.0.1/MWP-7.12.125.

(Always choose the "Custom" Install.)
Locked