RSS parser for Crystal
Add this to your application's shard.yml
:
dependencies:
rss:
github: ruivieira/rss
require "rss"
feed = RSS.parse "https://news.ycombinator.com/rss"
feed.items.each do |e|
str = "title: #{e.title}\nlink: #{e.link}\npubDate: #{e.pubDate}\n"
str += "description: #{e.description}\ncomments: #{e.comments}\n"
puts str
end
Warning:
- Pre-release (API will break)
- Fork it ( https://github.com/ruivieira/rss/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
- ruivieira Rui Vieira - creator, maintainer
- modsognir modsognir - contributor
- data-niklas data-niklas - contributor
- MineBartekSA - contributor