Re:Show HN: Get a Slack message when your brand is mentioned...
by stephengillie on Wednesday February 22, 2017 @06:14PM
(#13710174)
For just looking at titles on the front page, here's a one-liner in Powershell that scrapes every 60 seconds, and emails you:
While ($True) {If ((iwr https://news.ycombinator.com).content.split('", ') | select-string "YourBrand") {Send-MailMessage -from [email protected] -to [email protected] -server MySmtpServer.example.com -subject "YourBrand was mentioned on the front page of HN!"}; Sleep 60}
Re:Show HN: Get a Slack message when your brand is mentioned...
by codeplea on Wednesday February 22, 2017 @08:43PM
(#13710938)
Does your one-liner continue to send the same email every 60 seconds while "YourBrand" is on the front page?
Re:Show HN: Get a Slack message when your brand is mentioned...
by stephengillie on Wednesday February 22, 2017 @11:54PM
(#13711758)
Yes, you may want to disable it when your brand hits the front page.
[1] https://f5bot.com