StackPrinter: The Stack Exchange Printer Suite

UPDATE:

Version 1.1 - MySE section, PrettyPrint, StackPrinter API

Logo:

I've created this micro web application basically to add a "Printer-Friendly" feature to the Stack Exchange Network sites, trying to remove some @Media Print CSS limitations like hidden comments, pagination and empty spaces. (rationale here)

Other features:

1. Greasemonkey script - Adds a Printer-Friendly button on question's page (FF|Chrome)
2. Bookmarklet - Allows you to print a question directly from question's page
• Favorites: lets you browse and print favorites users's questions from:
1. The Stack Exchange Network
2. Delicious social bookmarking
• TopVoted: top voted questions by tags
• TopPrinted: StackPrinter top printed questions
• Deleted: popular deleted questions archive
• MySE: for printing all your Stack Exchange stuff

Language: Python
Framework: webpy
Source: github
Api: /export

Credits

-
Good job. The questions are formatted nicely! :) – Nathan Osman May 22 '10 at 5:18
@George thanks, glad you like it. – systempuntoout May 22 '10 at 6:17
that is brilliant!!! If only this could be a real part of SO! – Matt S. May 22 '10 at 13:34
oh man! also, why don't you modify it so it displays the actual value of the link. Displaying just the text doesn't mean a lot unless you can view the URL as well – Matt S. May 22 '10 at 22:07
the url. Just blue text tells me nothing. I want to see the actual URL so I can type it in later :) – Matt S. May 23 '10 at 2:08
How about doing what Wikipedia does, and have all the links at the bottom of the page? Then just use [1], [2], etc. in the posts. – Nathan Osman May 23 '10 at 7:17
@George do you think it would be useful? – systempuntoout May 23 '10 at 11:40
What if I am going to make more than 10K prints per hour? – Elyse May 23 '10 at 15:52
@Koning Amazon Forest will disappear in no time. – systempuntoout May 23 '10 at 16:02
+1 from me for the error page, obviously – balpha May 25 '10 at 10:11
Thanks - I just thought that would look nicer :) – Nathan Osman May 26 '10 at 23:53
TREE KILLER!!!! 8-p – Sky Sanders Jul 5 '10 at 0:26
Great application -- there are still a few cases where a nice printout beats reading something on the screen. Suggestion: include the original question URL in prominent fashion near the top of the printout. That would be a good reference from the printed page back to the online version. – BrianC Jul 5 '10 at 19:32
I voted it up here a long time ago... I'll vote it up there. – Nathan Osman Jul 7 '10 at 16:11
@kenorb just add &printer=true at the end of the url if you don't want ads. – systempuntoout May 13 at 14:14

Stackprinter allows you to print directly from Stack Exchange sites using Greasemonkey script or an handy bookmarklet.
Greasemonkey script adds a Printer-Friendly button to the question you are browsing (Firefox and Chrome both supported).
Bookmarklet is useful if Greasemonkey is not an option and has the same effect of Printer-Friendly button, allowing the print of the question straight from the question page.

Favorites

Favorites allows you to browse and print your favorite questions or other users favorites.
Stackprinter supports all Stack Exchange sites plus Delicious social bookmarking service.
Just star or save your questions and browse Stackprinter to print all of them later.

Users search

Favorites result

[Q]uicklook

Delicious result

TopVoted

TopVoted allows you to browse and print the best questions searched by tags.

Tags search

TopVoted result

-

I asked this as a question, but apparently the convention is to report bugs/feature requests in the announcement thread. It appears, that the MathJax extension mhchem is currently not enabled in the StackPrinter app. This is rather inconvenient for most of the chemistry.se questions and answers. It would therefore be nice if this feature could be enabled for the StackPrinter app.

Example:
Please consider the sandbox on meta.chemistry.se and its printed version (also see the screenshot below). You can see in the first equation of my post the red \ce. I enabled the mhchem package manually via \require{mhchem] after that and the same command renders now.

-
I will take a look at it, is this extension available on Cdn? – systempuntoout Apr 21 at 12:43
I do not know what Cdn is. The extension is part of the whole MathJax package. It is probably just a variable that has to be toggled, since it is already available, as the screenshot proves. Thanks for having a look. – Martin - マーチン Apr 21 at 12:55
Oh OK, it should be easy to fix.(maybe tonight) – systempuntoout Apr 21 at 14:39
Should be fixed, give it a try. – systempuntoout Apr 21 at 21:15
@systempuntoout It works like a charm, thank you very much. Great app! – Martin - マーチン Apr 22 at 3:10

Here is a small script (stackprinter) which uses Stack Printer from the command-line:

#!/bin/sh
type wkhtmltopdf || { echo >&2 "wkhtmltopdf command is required. Aborting."; exit 1; }
: ${1?"Usage:$0 (url)"}
URL=$1 && shift HOST=$(echo $URL | egrep -o "([.[:alnum:]]*?)\.(com|net|org)" | head -c-5) QID=$(echo $URL | grep -o "\d.*/" | head -c-2) PRINTURL="http://www.stackprinter.com/export?format=HTML&printer=true&service=$HOST&question=$QID" FILENAME=$(curl -s $URL | grep -o "<title>[^<]*" | tail -c+8) wkhtmltopdf$* $PRINTURL "$FILENAME.pdf" && echo "'$FILENAME.pdf' saved."  Usage: ./stackprinter (url)  Example (tested on OS X): $ ./stackprinter http://stackapps.com/questions/179/stackprinter-the-stack-exchange-printer-suite
'app - StackPrinter: The Stack Exchange Printer Suite - Stack Apps.pdf' saved.

-

protected by Community♦Mar 8 '14 at 18:13

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.