A thin Python library to access HN data using Algolia's API
Hello community. Some time ago I was trying to create a project for my students using Hacker News data. As you might know, HN offers an official API [0], but it's based on Firebase and I felt it's main usage is to build clients, rather than consult data. I found out that Algolia also provides an official REST API [1]. It's exactly what I needed: the ability to "search" HN. Either by keywords, type of stories (Show HN, Ask HN, etc) and/or date. So I created a thin python wrapper on top of Algolia's Search API: https://github.com/santiagobasulto/python-hacker-news The…
What it does
In the maker’s words, at launch
Hello community. Some time ago I was trying to create a project for my students using Hacker News data. As you might know, HN offers an official API [0], but it's based on Firebase and I felt it's main usage is to build clients, rather than consult data. I found out that Algolia also provides an official REST API [1]. It's exactly what I needed: the ability to "search" HN. Either by keywords, type of stories (Show HN, Ask HN, etc) and/or date. So I created a thin python wrapper on top of Algolia's Search API: https://github.com/santiagobasulto/python-hacker-news The library is in early stage, but already usable. A few examples: How to search posts from one user: results = search_by_date( author='pg', hits_per_page=1000) How to search posts by type (this would find this same post) results = search_by_date( 'thin python library', show_hn=True, hits_per_page=1000) I'm working on implementing the the other methods. If you have suggestions please bring them up! [0] https://github.com/HackerNews/API [1] https://hn.algolia.com/api
Does the same job
all alternatives →


- PFPosts from Hacker News tagged "Show HN"2013 · showhnapp.herokuapp.com · ▲35
My first python app, it displays posts from hacker news that is tagged under "Show HN"...


More dev tools this month
the category →



Open-source GTM skills for technical founders
Dev tools · 29d ago · gtmcofounder.com

OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.
Dev tools · 1d ago · opentrailpaper.com

Launched alongside, July 2019
the whole month →




Really good curated email design and code inspiration
Dev tools · 2019 · reallygoodemails.com
Poolside FM 2.0▲671Super-summer music website inspired by a '90s OS
Life & fun · 2019 · v2.poolside.fm