A Python wrapper for the official Hacker News API (v0)
Project description
Installation
pip install hackernews-python
Usage
>>> from hackernews import HackerNews
>>> hn = HackerNews()
>>> hn.top_stories()
[8422599, 8422087, 8422928, 8422581, 8423825...
>>> hn.user('pg')
{'delay': 2, 'id': 'pg', 'submitted': [7494555, 7494520, 749411...
>>> hn.item(7494555)['title'])
Hacker News API
>>> hn.max_item()
8424314
>>> hn.updates()
{'items': [8423690, 8424315, 8424299...], 'profiles': ['exampleuser',...]}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for hackernews_python-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35159c38e4041c8183b65e533ba4354048f6dc68900a6e91cef13fec03018ebc |
|
MD5 | 192cfe74158116af4eed6df706353d06 |
|
BLAKE2b-256 | cef5e55a0f62c044e766af481ed8b94300870567d426c78de62e77cc2511b2bd |