An rss feed aggregator based on/rewritten of https://github.com/ga2mer/rss-feed-emitter.cr
Add this to your application's shard.yml
:
dependencies:
rss_feed:
github: pixelinc/rss-feed.cr
require "rss_feed"
# refresh_interval is a Timespan
# This means you can use something like 5.seconds, 5.minutes, etc.
RSSFeeder::Feed.listen("url", refresh_interval: 5.seconds) do |item|
puts item.title
end
- Fork it ( https://github.com/pixelinc/rss-feed.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request