StackScraper is a user script that adds HTML and JSON export options to each question. The JSON loosely resembles the API format and includes the HTML and markdown bodies of all posts, as well as their comments and vote counts (if you have permission to view them). The HTML displays the content similarly to Stack Exchange and includes the necessary attribution. Comments are included, but initially hidden.

As an example, here are the JSON and HTML dumps of a deleted question.


Released under the MIT Open Source License.


Click here to install or update StackScraper.


  • Google Chrome, probably
  • Mozilla Firefox + Greasemonkey, possibly

(Not well-tested yet.)


StackScraper was written by me, Jeremy Banks. Feedback and bug reports can be posted as comments or answers below.


StackScraper was written in CoffeeScript. You can view or contribute to the source here on GitHub.

  • Bug Mangles owner of this wiki question.
    – Jeremy
    Mar 18 '12 at 3:07
  • TODO Fetch revisions list for wiki posts in order to always correctly determine owner/editors.
    – Jeremy
    Mar 18 '12 at 3:11
  • TODO Stop making requests as soon as you get blocked.
    – Jeremy
    Mar 18 '12 at 3:30

You must log in to answer this question.

Browse other questions tagged .