title | description | integrations | categories | ||
---|---|---|---|---|---|
Hacker News alerts in Slack |
Track Hacker News articles by topic and send updates to Slack |
|
|
This project monitors Hacker News for new articles matching a specific topic, fetching their details in real-time. It compares the latest results with previously fetched articles to identify new ones and sends their title and URL as notifications to a Slack channel.
- Extract the topic from the Slack app mention.
- Add the topic to the Hacker News search query (check out Algolia's REST API for more details).
- Return all the new articles related to the topic that were published since the last check.
- Initialize your connection with Slack through the UI
- Install AutoKitteh
- Set up required integrations:
-
Clone the repository:
git clone https://github.com/autokitteh/kittehub.git cd kittehub/hackernews
-
Start the AutoKitteh server:
ak up --mode dev
-
Deploy the project:
ak deploy --manifest autokitteh.yaml
The output will show your connection IDs, which you'll need for the next step. Look for lines like:
[exec] create_connection "hackernews_alert/slack_connection": con_01je39d6frfdtshstfg5qpk8sz created
In this example,
con_01je39d6frfdtshstfg5qpk8sz
is the connection ID. -
Initialize your connections using the CLI:
ak connection init slack_connection <connection ID>
- Type
@your-slack-app topic
in the Slack channel you set in the environment variable, replacingtopic
with what you want to search for, to start tracking articles - The workflow runs automatically every two minutes after deployment