2013-07-01 42 views

回答

0

看一看Feedzirra

解析馈送到内部存储器。它能够做你需要的东西:

# updating a single feed 
updated_feed = Feedzirra::Feed.update(feed) 

# an updated feed has the following extra accessors 
updated_feed.updated?  # returns true if any of the feed attributes have been modified. will return false if only new entries 
updated_feed.new_entries # a collection of the entry objects that are newer than the latest in the feed before update 

# updating multiple feeds. it expects a collection of feed objects 
updated_feeds = Feedzirra::Feed.update(feeds.values) 

检查Feedzirra的自述文件,了解其他可用的方法。