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.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32f29ed60ed591e6f27987fe5c2daf7165fcce7f70ba23fe78c1c4946ab4a1af |
|
MD5 | 3dc8449598d7a7fc8a75a281862a8ead |
|
BLAKE2b-256 | 267acf00176b9ad2a154ae186463f3512b944b8b1f89bd338d9195c971f90406 |