Unofficial Hacker News API
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
models
static
templates
APIContent.py New API: Get Post Data by ID Jan 25, 2013
APIUtils.py
AppConfig.py
BeautifulSoup.py initial commit Oct 17, 2011
DataCache.py
Formatter.py Added jsonp support through a new callback request parameter Sep 3, 2012
GAHelper.py Added appDomain configuration variable allowing GA to track on altern… Sep 3, 2012
GetHNAskHandler.py
GetHNBestHandler.py
GetHNCommentsHandler.py
GetHNLatestHandler.py
GetHNNestedCommentsHandler.py
GetHNNewestHandler.py
GetHNPageContentHandler.py Added jsonp support through a new callback request parameter Sep 3, 2012
GetHNPostHandler.py
GetHNRSSHandler.py
GetHNSecondPageHandler.py
GetHNSubmittedHandler.py Added jsonp support through a new callback request parameter Sep 3, 2012
README
SandboxController.py
app.yaml
index.yaml initial commit Oct 17, 2011
main.py
structured.py

README

Unofficial Hacker News API: http://hndroidapi.appspot.com

The API is currently in beta and was developed for the Hacker News Droid app (https://market.android.com/details?id=com.glebpopov.hackernews). The API is built in Python and hosted on AppEngine. I used the Beautiful Soup library for HTML parsing/scraping. 

There's five minute caching for main content entry points (/news, /best, /ask, /newest); there's no caching for paginated content (requests that require pageID). 

For any questions, source code, etc, please drop me a note. Cheers, Gleb