Save 'Saved Stories' on HN to simple JSON format.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 16 commits ahead of luciano-fiandesio:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Hacker News to JSON

Save 'saved stories' from a Hacker News account to a simple JSON format.

The script parses the saved stories page on HN ( and, for each link on each page of the saved stories history it outputs an entry to a JSON document with information taken from the Hacker News API. (

The script is meant to be launched from the command line.

Originally developed on iPad by Luciano Fiandesio with the awesome Pythonista ( and modified for JSON output by John David Pressman.

How to use

python [hn user] [hn password] -n [Number of pages to grab] -f [JSON filename]