[HN Gopher] Show HN: Get latest replies to an HN user
___________________________________________________________________
Show HN: Get latest replies to an HN user
Hi HN, I hacked a simple service for gathering HN replies and
organizing them by the parent's username. The main idea is to be
able to efficiently get the latest replies to an HN user. For
example, you can use this service to send yourself notifications
when some replies to you on HN. The service queries the official
HN API and can be self-hosted. It is basically ~30 lines of Bash
script. I made this mostly for educational purposes -- thought you
might find it useful for something. Cheers! Edit: for example,
here are the latest replies to me [0]. It includes only recent
replies, since I started the service just yesterday and it hasn't
observed older replies. [0]
https://hnreplies.ggerganov.com/?u=ggerganov
Author : ggerganov
Score : 26 points
Date : 2022-01-20 20:25 UTC (2 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| codegeek wrote:
| Power of good old bash scripts. Nicely done. Of course as another
| poster mentioned, we have the hnreplies.com service as well. But
| what's the fun in that when you can hack your own :)
| banana_giraffe wrote:
| For anyone that finds it useful, same idea, but a script that can
| run locally and produce something an RSS reader could parse:
|
| https://gist.github.com/Q726kbXuN/15e61acc003bb6d46a458001fe...
| [deleted]
| mindcrime wrote:
| _In some cases this can cause a user to miss a reply in a
| discussion in which they had participated recently. Some users
| consider this to be a feature rather than a deficiency._
|
| Yeah, I'm kinda glad HN doesn't have that. I think it helps avoid
| prolonged, drawn-out arguments that just go around in circles,
| generate animosity, and lead nowhere. Not getting notifications
| makes it easier to just let a conversation die out. I would put
| this in the "feature" category myself.
| ggerganov wrote:
| I completely agree - I just wondered how one would do that and
| wrote the Bash script. Then I tried to optimize it with C++ and
| finally thought - why not share.
|
| Btw, your comment somehow didn't get detected by my service
| :-). First I thought I have a bug somewhere, but then I checked
| the result from the official HN API and for some reason it
| fails to return a result for the item id (30014342) of your
| comment [0]. Strange .. haven't seen this before.
|
| [0] https://hacker-news.firebaseio.com/v0/item/30014342.json
|
| Edit: and it just showed up -- I guess it can take some time.
| alkonaut wrote:
| I use the HN email reply notification by Dan Grossman.
|
| http://www.hnreplies.com/
|
| It find it would be impossible to maintain a useful discussion
| that lasts longer than just a few hours without it. It would be
| single drive-by comments without dialogue. I probably wouldn't
| use HN at all if I didn't have a service like this one. I do
| certainly not consider the risk of low quality drawn out debate
| to be worth missing out on replies.
| boogies wrote:
| > It find it would be impossible to maintain a useful
| discussion that lasts longer than just a few hours without it.
|
| What's wrong with
| https://news.ycombinator.com/threads?id=alkonaut? (Where the
| "threads" link in your top bar leads.) It doesn't show
| discussions from weeks ago on the first page, but it does show
| a couple of days worth at the moment.
| saagarjha wrote:
| If you post frequently enough you'll start getting responses
| on comments from page two or three of that list, which you
| might miss otherwise.
| ggerganov wrote:
| Thanks - I didn't know this existed (I now realize that I
| didn't even bother to check if the "hnreplies" name has been
| used already..)
| stavros wrote:
| If you use Telegram, I wrote a reply bot that's extremely easy to
| use:
|
| https://gitlab.com/stavros/hn-reply-bot
|
| Just send it your username and it'll notify you on reply.
___________________________________________________________________
(page generated 2022-01-20 23:01 UTC)