rss

Version, currently 0.2.02 versions

github.com/ruivieira/rss

RSS parser

11 stars
2 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  rss:
    github: ruivieira/rss
    version: ~> 0.2.0

Then run:

shards install

shard.yml

Crystal
0.35.1
License
MIT
Authors
Rui Vieira, MineBartekSA

Dependencies

This version declares no dependencies.

README

rss

RSS parser for Crystal

Installation

Add this to your application's shard.yml:

dependencies:
  rss:
    github: ruivieira/rss

Usage

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)

Contributing

  1. Fork it ( https://github.com/ruivieira/rss/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors