Skip to content

ZORbit01/hackernews-python

 
 

Repository files navigation

Hacker News API Wrapper

Installation

pip install hackernews-python

Usage

>>> from hackernews import HackerNews
>>> hn = HackerNews()
>>> hn.top_stories()
[8422599, 8422087, 8422928, 8422581, 8423825...

>>> hn.item(1).title
'Y Combinator'

>>> hn.item(1).time
datetime.datetime(2006, 10, 9, 11, 21, 51)

>>> hn.user('pg').created
datetime.datetime(2006, 10, 9, 11, 21, 32)

>>> hn.user('pg').karma
155040

>>> hn.max_item()
8424314

>>> hn.updates()
{'items': [8423690, 8424315, 8424299...], 'profiles': ['exampleuser',...]}

API Documentation

https://github.com/HackerNews/API

About

Hacker News API Wrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%