Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parano/860883fded65660c21e8e13503a4a5e7 to your computer and use it in GitHub Desktop.
Save parano/860883fded65660c21e8e13503a4a5e7 to your computer and use it in GitHub Desktop.
Get notified when certain topics are being discussed on Hacker News

Get notified when certain topics are being discussed on Hacker News

This is a simple solution I use for getting notifications on my phone, whenever there is discussion happening on Hacker News related to topics that I am interested in. The solution is relying on the @newsyc20 twitter bot(or @newsyc50, @newsyc100, ...), twitter advanced search query and ifttt.com.

Here's an example of how I made ifttt to send me a mobile notification when there's Machine Learning, MLops, BentoML, releated discussion on hacker news that has reached 20 points:

  1. Create a twitter search query that filters content posted by @newsyc20, here's the query I used: ML OR AI OR mlops OR "machine learning" OR "artificial intelligence" OR "deep learning" OR "bentoml" from:newsyc20. You can tweek the search query there and see if the content listed are what you want to get notified with. Learn more about twitter advanced search query from here.

  2. Go to ifttt.com, create account and login, click "Explore" and "Create" to create a new ifttt applet from scratch.

  3. Click "This" and find twitter in the service list, choose the "New tweet from search" trigger and paste the search query you've built in the previous step.

  4. Click "That" and choose how you want to get notified, ifttt support email, sms, etc. For me, I prefer the notification via iftt mobile app, so I go with the "notification" action(see the screenshot in the comment below)

That's it, no more refreshing HN page and waiting for discussions that are interesting to you. The downside of this solution is it does not search the content nor comments in the HN post. While I'm sure it's not so hard to build it with code, I'm quite satisfied with this simple and free solution. If you find a simple solution that does that, please let me know.

Another ifttt "trigger" that can be used for this purpuse, is using the Hacker News RSS feed https://edavis.github.io/hnrss/, this will require exact keyword matching, but gives you the ability to search based on replies.

@parano
Copy link
Author

parano commented May 11, 2020

ifttt com_applets_112726066d_edit (1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment