132 points · by zepolen · 9y ago · 31 comments
We (tyk.io) use Slack notifications with Zapier for various searches on HN, Reddit, Twitter, Stackoverflow or even Google Alerts (the last one use built-in Slack `/feed` feature).
In your Bitcoin example, one would be notified if the displayed content of an article on the front page (or say top N, or greater than M points, ...) includes the word "Bitcoin".
Bonus points if you can do complex or negative matches. Ex: +database -mongodb
I don't know how often the front page of Hacker news is updated but you could build this yourself.
CRON > PHP > CURL > HTMLDOMScraper > Slack webhook
I had everything else except the CRON part, I had trouble trying to run that.
note: the CRON thing for me, I tried Ubuntu and Debian, I don't know I couldn't get it to work. I couldn't get a simple php script to execute on the timed interval.
So a dumb solution would be to use a setTimeout poll with JavaScript and call the AJAX request to the PHP script which then runs everything else.
Slightly related and clearly shameless plug: you could build this from scratch in about 2 minutes using my our new (or about 30 seconds if you fork an existing one). If you're interested email automation@jofarnold.com for a developer account. I'd very much like to hear your feedback.
Obviously not as targeted as OP but still cool :)
While ($True) {If ((iwr https://news.ycombinator.com).content.split('", ') | select-string "YourBrand") {Send-MailMessage -from i@i.com -to example@example.com -server MySmtpServer.example.com -subject "YourBrand was mentioned on the front page of HN!"}; Sleep 60}
'\bterm\b'
or in wildcard cases '\bterm.*\bThanks!