3 ms·
I second this. And it's true that the official HN API is painful to use. Algolia's is a lot friendlier. I wrote a thin Python library on top: https://github.co
by santiagobasulto 7y ago
I second this. And it's true that the official HN API is painful to use. Algolia's is a lot friendlier.
I wrote a thin Python library on top: https://github.com/santiagobasulto/python-hacker-news https://github.com/santiagobasulto/python-hacker-news
Here's an example:
results = search_by_date(
'Who is hiring?', ask_hn=True,
author='whoishiring',
hits_per_page=1000)
Full working example: https://gist.github.com/santiagobasulto/b3a3bb94a26c1798b9650232ed1ade07 https://gist.github.com/santiagobasulto/b3a3bb94a26c1798b965...