Made a CLI script to print Wikipedia articles:
WIKI='https://en.wikipedia.org/w/index.php?title='
TITLE=$1
PRINTABLE='&printable=yes'
SRC=$WIKI$TITLE$PRINTABLE
HTML=$1".html"
PS=$1".ps"
wget $SRC
mv index* $HTML
html2ps $HTML > $PS
lpr -P pr1444 $PS
It works in the respect that if you write ./print Shane_Mosley this article is printed.
But, compared to using Firefox --- navigate to the site, and print from the menus --- the printed result is inferior: much less compact layout (especially tables), no pictures, and cannot handle "unusual" characters.
So, my question: Is Firefox "monolithic" or is it actually composed of modular tools, that I can replicate? Or could I use Firefox as a server, that I can feed commands (like go there and print)?
If no: are there ways to use my tools in a better way, or are there other tools that would enhance the result?

