Simple Broadcatcher in Haskell/HSH


/ Published in: Haskell
Save to your folder(s)

HSH is a cool haskell library that allows you to leverage your shell scripting prowess in haskell programs. In this simple broadcatcher, I use curl for http get, and other standard unix tools for tracking history (so we don't get the same file twice). The feed parsing and filtering is done in haskell using the Text.Feed and Text.Regex libraries.

Note: if you decide to use this in real life, be sure to respect your feed's time to live (ttl) in your crontab.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.