Skip to content
Unofficial Hacker News API http://hndroidapi.appspot.com
Python
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
models Removed complied files from source
static
templates fixed last character being truncated in comments
APIContent.py New API: Get Post Data by ID
APIUtils.py
AppConfig.py New API: Get Post Data by ID
BeautifulSoup.py initial commit
DataCache.py initial commit
Formatter.py Added jsonp support through a new callback request parameter
GAHelper.py Added appDomain configuration variable allowing GA to track on altern…
GetHNAskHandler.py Added jsonp support through a new callback request parameter
GetHNBestHandler.py
GetHNCommentsHandler.py Added jsonp support through a new callback request parameter
GetHNLatestHandler.py Added jsonp support through a new callback request parameter
GetHNNestedCommentsHandler.py Added jsonp support through a new callback request parameter
GetHNNewestHandler.py Added jsonp support through a new callback request parameter
GetHNPageContentHandler.py Added jsonp support through a new callback request parameter
GetHNPostHandler.py
GetHNRSSHandler.py Added jsonp support through a new callback request parameter
GetHNSecondPageHandler.py Added jsonp support through a new callback request parameter
GetHNSubmittedHandler.py Added jsonp support through a new callback request parameter
README Modified README
SandboxController.py Added Sandbox controller
app.yaml Nested Comments. Refactoring.
index.yaml initial commit
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.