Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rss-motor

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rss-motor

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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

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

====================================================================== 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.

+ $ 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' => '....', ...}, ...] ]

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

FAQs

Package last updated on 08 Sep 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc