Skip to content

arashkay/WebFeed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project uses MIT-LICENSE. It is created by Arash Karimzadeh @ <a href=‘www.ectual.com’>Tectual</a>.

In Rails 3, add following line to your Gemfile and run the bundle command.

gem "web_feed"

In Rails 2, add following line to your environment.rb file.

config.gem "web_feed"

There couple of generators. you can run something like rails g web_feed:install -h to see what they do

web_feed:install
web_feed:resource
web_feed:keyword
web_feed:news
web_feed:add_image

Running rails g web_feed:install -mvc will create all migrations, models, views, controllers and routings and a basic stylesheet file.

In case you want to rename the entities you can run this command:

rails g web_feed:install -r [RESOURCE_NAME] -n [NEWS_NAME] -k [KEYWORD_NAME] -mvc
rails g web_feed:install -r resource -n post -k keyword -mvc

Add following line to your main layout to see the WebFeed pages with basic styling

<%= stylesheet_link_tag    "webfeed", :media => "all" %>

And add this line to see the what pages you have in WebFeed

<%= render 'layouts/webfeed' %>

After generating file and migrating rails db:migrate. Try to add some RSS resources such as feeds.gizmodo.com.au/GizmodoAustralia or techcrunch.com/feed/ and some keywords such as iphone, samsung and facebook. Then try to update resources from index page.

  • More test cases

  • Improve parser to cover more cases

  • Adding a way to parse non-standard xml formats

Start Guard by bundle exec guard.

About

Read RSS feeds from other websites based on keywords

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors