Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 848 Bytes

README.md

File metadata and controls

41 lines (30 loc) · 848 Bytes

feed_filter

Rack app for advanced filtering RSS and Atom feeds. It's work like a proxy, so you can use any news agregator.

Getting started

$ git clone git@github.com:andrey-skat/feed_filter.git

then run

$ bundle install

Run

Go to the directory with feed_filter and run

$ rackup

Configuration

rules.rb is a file with feed urls and filters (see example below).

To filter feed, add it url to your feed aggregator like so http://your-app-domain.com/?url=http://feedurl.com

Simple example

in feed_filter/rules.rb

FeedFilter.configure do

  #filter out only those articles that mention Ruby
  #block gets article object as parameter
  #if block return false, then article would be excluded
  feed 'http://habrahabr.ru/rss/hubs/' do |item|
       item.title.to_s =~ /ruby/i
  end

end