Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
an RSS Motor for your application to get rolling on using RSS Feeds
Ruby Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
.rspec
CHANGELOG
Gemfile
Gemfile.lock
README
Rakefile
make_my_gem.sh
rss-motor.gemspec

README

======================================================================

 ||}}  //\  //\ _ ||\/|| ||@|| ~++~ ||@|| ||))
 ||\\ _\\  _\\    ||  || ||_||  ||  ||_|| ||\\

======================================================================
v 0.0.6

@GitHub: https://github.com/abhishekkr/rubygem_rss_motor
@RubyGems: http://rubygems.org/gems/rss-motor

for support contact: 
  mail: abhikumar163@gmail.com
  http://www.twitter.com/aBionic
======================================================================

An easy to use RSS library to get kickstarted with using RSS Feeds.

[How To Use]:
  Loading:
    + $ gem install rss-motor
    + 'require' the 'rss-motor'

  Usage:
  [+] passing a single RSS Link and fetching array of all items, with hash of nodes
    puts Rss::Motor.rss_items 'http://news.ycombinator.com/rss'
    Output: [{'title1' => '....', ...}, {'title2' => '....', ...}, ...]

  [+] passing a single RSS Link and fetching array of all items, with hash of nodes
    puts Rss::Motor.rss_items 'http://news.ycombinator.com/rss', ['comments'], {'media:content' => 'url'}
    Output: [{'title1' => '....', ..., 'media:content:url' => '...'}, {'title2' => '....', ..., 'media:content:url' => '...'}, ...]
    This will fetch hash with set of node values per rss item, including node value for 'comment'; value for 'url' attribute for node 'media:content'

  [+] filtering items from multiple rss-links having any from set of given keywords
      #case in-sensitive filtering
    puts Rss::Motor.rss_grep 'http://news.ycombinator.com/rss', ['ruby', 'android']
    Output: ['ruby' => [ {'title1' => '....', ...}, {'title2' => '....', ...}, ...]
            'android' => [ {'title1' => '....', ...}, {'title2' => '....', ...}, ...] ]

  [+] filtering items from multiple rss-links having any from set of given keywords,
      also grabbing entire rss item's link content and check it for filter
      #case in-sensitive filtering
    puts Rss::Motor.rss_grep_link 'http://news.ycombinator.com/rss', ['ruby', 'android']
    Output: ['ruby' => [ {'title1' => '....', ...}, {'title2' => '....', ...}, ...]
            'android' => [ {'title1' => '....', ...}, {'title2' => '....', ...}, ...] ]

=====================================================================
=====================================================================
Something went wrong with that request. Please try again.