Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Unofficial Hacker News API
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
models
static
templates
APIContent.py
APIUtils.py
AppConfig.py
BeautifulSoup.py
DataCache.py
Formatter.py
GAHelper.py
GetHNAskHandler.py
GetHNBestHandler.py
GetHNCommentsHandler.py
GetHNLatestHandler.py
GetHNNestedCommentsHandler.py
GetHNNewestHandler.py
GetHNPageContentHandler.py
GetHNPostHandler.py
GetHNRSSHandler.py
GetHNSecondPageHandler.py
GetHNSubmittedHandler.py
README
SandboxController.py
app.yaml
index.yaml
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
Something went wrong with that request. Please try again.