Version 1.1 - MySE section, PrettyPrint, StackPrinter API


App Homepage

Homepage screenshot

Printable view

Printable view screenshot



StackPrinter is a website that pulls the main details of a given question, all its answers, comments and votes formatting them in a simple essential printable view.

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:

  • Addons:
    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


Printable question:
What should a developer know before building a public web site? - Stack Overflow
Recovering a lost website with no backup? - Super User
Good tools that fit on a thumb drive - Server Fault
Jon Skeet Facts? - Meta Stack Overflow
API Documentation and Help - Stack Apps

Jon Skeet - Stack Overflow
Jeff Atwood - Stack Overflow
Zoredache - Server Fault
wil - Super User
gangsta75 - Delicious

python tag - Stack Overflow
discussion tag - Meta Stack Overflow

What's your favorite "programmer" cartoon?


Language: Python
Platform: Google App Engine
Framework: webpy
Source: github
Api: /export
License: BSD



Contact info


  • 2
    Good job. The questions are formatted nicely! :) – Nathan Osman May 22 '10 at 5:18
  • 2
    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
  • 2
    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
  • 3
    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
  • 1
    What if I am going to make more than 10K prints per hour? – rightfold May 23 '10 at 15:52
  • 4
    @Koning Amazon Forest will disappear in no time. – systempuntoout May 23 '10 at 16:02
  • @sys: I think so - if there were a lot of links, the pages would be much easier to read. – Nathan Osman May 23 '10 at 16:04
  • 1
    TREE KILLER!!!! 8-p – Sky Sanders Jul 5 '10 at 0:26
  • 1
    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
  • 1
    I voted it up here a long time ago... I'll vote it up there. – Nathan Osman Jul 7 '10 at 16:11
  • 1
    @kenorb just add &printer=true at the end of the url if you don't want ads. – systempuntoout May 13 '15 at 14:14
  • 1
    to be https compliant, it's time to update the bookmarklet regex to ^https?://(.*?)\.com/questions/([0-9]+)/ – Kul-Tigin Jun 19 '17 at 20:50
  • 1
    I have been using Brett Terpstra's "Answered" (brettterpstra.com/projects/answered) bookmarklet. It offers some of the same functionality, but StackPrinter offers more options for archival purposes. – Charles Johnson Aug 31 '17 at 15:16


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.

alt text


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
alt text

Favorites result
alt text

[Q]uicklook alt text

Delicious result
link text


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

Tags search
link text

TopVoted result
link text

  • Is there no way to 'print all' questions or answer by a particular user? – Iceberry Feb 28 '19 at 6:26

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.

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.

printed result

  • I will take a look at it, is this extension available on Cdn? – systempuntoout Apr 21 '15 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 '15 at 12:55
  • Oh OK, it should be easy to fix.(maybe tonight) – systempuntoout Apr 21 '15 at 14:39
  • Should be fixed, give it a try. – systempuntoout Apr 21 '15 at 21:15
  • @systempuntoout It works like a charm, thank you very much. Great app! – Martin - マーチン Apr 22 '15 at 3:10

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

type wkhtmltopdf || { echo >&2 "wkhtmltopdf command is required. Aborting."; exit 1; }
: ${1?"Usage: $0 (url)"}
URL=$1 && shift
HOST=$(echo "$URL" | grep -Eo "([.[:alnum:]]*?)\.(com|net|org)" | head -c-5)
QID=$(echo "$URL" | grep -o "[0-9].*/" | head -c-2)
FILENAME=$(curl -s "$URL" | grep -o "<title>[^<]*" | tail -c+8)
wkhtmltopdf $* "$PRINTURL" "$FILENAME.pdf" && echo "'$FILENAME.pdf' saved."


./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.
  • head -c-2 doesn't work on macOS, is the intent to get the first string of alphanumerics out of the URL? I guess sed 's/[^0-9]*//;s/[^0-9].*//' would do that in a single process. Of course, using parameter expansion would do it without any external process at all (but require several steps and maybe a temporary variable). – tripleee Jun 10 at 4:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .