Questions tagged [feedzirra]

Feedzirra is a feed library that is designed to get and update many feeds as quickly as possible. This includes using libcurl-multi through the taf2-curb gem for faster http gets, and libxml through nokogiri and sax-machine for faster parsing.

Feedzirra is a feed library that is designed to get and update many feeds as quickly as possible. This includes using libcurl-multi through the taf2-curb gem for faster http gets, and libxml through nokogiri and sax-machine for faster parsing.

Once you have fetched feeds using Feedzirra, they can be updated using the feed objects. Feedzirra automatically inserts etag and last-modified information from the http response headers to lower bandwidth usage, eliminate unnecessary parsing, and make things speedier in general.

Another feature present in Feedzirra is the ability to create callback functions that get called "on success" and "on failure" when getting a feed. This makes it easy to do things like log errors or update data stores.

The fetching and parsing logic have been decoupled so that either of them can be used in isolation if you’d prefer not to use everything that Feedzirra offers. However, the code examples below use helper methods in the Feed class that put everything together to make things as simple as possible.

The final feature of Feedzirra is the ability to define custom parsing classes. In truth, Feedzirra could be used to parse much more than feeds. Microformats, page scraping, and almost anything else are fair game.

70 questions
1
vote
1 answer

"published" time not right when parsing using Feedzirra

I'm using Feedzirra to parse feed, and the method for creating entries is like class Feed < ActiveRecord::Base def create_entries rawfeed self.entries.create(title: rawfeed.title, content:rawfeed.content, published:rawfeed.published, …
melodrama
  • 265
  • 1
  • 5
  • 14
1
vote
0 answers

feedzirra update doesn't find updates

I am trying to use feedzirra to grab rss/atom feeds, but feedzirra doesn't seem to find updates. I start by grabbing new feed and dumping the returned structure to a file. require 'rubygems' require 'yaml' require 'feedzirra' feed =…
1
vote
1 answer

Bundler locked loofah, without reason

So I want to use feedzirra in my rails app. Feedzirra uses loofah gem. When I had only feedzira gem specified in Gemfile it installed loofah 1.0.0. But loofah 1.0.0 have some problems with utf-8 encoding. So I wanted upgrade and changed gemfile…
Octopussy
  • 128
  • 2
  • 10
1
vote
3 answers

Feedzirra Not Installed Properly?

I'm trying to use Feedzirra in my Rails 3.2 app to do simple feed parsing. I found this online: http://asciicasts.com/episodes/168-feed-parsing. I followed the instructions there to install the gem, but I believe this instructions are somewhat out…
Chiubaka
  • 801
  • 2
  • 11
  • 27
1
vote
1 answer

Within code called by Resque worker, why is object a hash?

I've been unable to work with an object within code triggered from a Resque worker. This is a sinatra/datamapper app. The Feed class is a DataMapper model. Here's the Subscriber code class Subscriber @queue = :subscriptions_queue def…
RyanW
  • 5,338
  • 4
  • 46
  • 58
1
vote
1 answer

Unable to activate feedzirra-0.1.3, because activesupport-3.2.3 conflicts with activesupport (~> 3.1.1) (Gem::LoadError)

I'm trying to use Feedzirra to parse an RSS feed, but I'm not able to have the activesupport gem required at the same time. It is telling me that I have a conflict between two version of activesupport. I have activesupport(3.2.3) and feedzirra…
ptwiggerl
  • 301
  • 4
  • 7
0
votes
1 answer

Rails: Get urls from database?

Trying to get into Rails and feedzirra! :) I have stores multiple feed urls into database and have problems to fetch those and get it work feedzirra. Urls needs to be like this: feed_urls = ["http://www.feedurl1.com/feed",…
Marko
  • 1,565
  • 2
  • 13
  • 20
0
votes
1 answer

So what's up with RSS in Ruby (and Rails!)?

Working on a [rails] project, I've started playing around with RSS parsing. I notice that there are TONS of feed parsers out there, and different folks have their preferences. Naturally, one of the first places I looked was…
Iamvery
  • 274
  • 2
  • 11
0
votes
2 answers

Ruby checking rss feed every X minutes

I have a simple app that fetches an RSS feed and downloads some data. How can I get my ruby app to check the RSS feed every X minutes? should I just wrap all the code in a loop with a sleep?
Fatal510
  • 1,673
  • 3
  • 16
  • 21
0
votes
1 answer

Stripping Html tags from Rss feeds using Feedzilla

I cant seem to find info anywhere on how to strip html tags from the summary/title/etc fields of rss feeds using Feedzirra. Here is my code: # Get feed details feed = Feedzirra::Feed.fetch_and_parse(rssUrl) feed.entries.each do |entry| …
Thomas Buckley
  • 5,836
  • 19
  • 62
  • 110
0
votes
1 answer

heroku feedzirra problem

is that feedzirra compatible with heroku ? i have no problem at localhost to use feezirra.
rails_noob
  • 311
  • 2
  • 5
  • 14
0
votes
2 answers

Storing Media RSS and iTunes podcast RSS feeds in the database

I want to be able to store media RSS and iTunes podcast RSS feeds into the database. The requirement here is that I don't want to miss out on ANY element or its attributes in the feed. It would make sense to find all most common elements in the feed…
Chirantan
  • 15,304
  • 8
  • 49
  • 75
0
votes
1 answer

Feedzirra is not updating the article content

I'm using Feedzirra to get some rss content. This content can be updated by a third person. In my controller I have the following code: RSS_FEED = "http://xxxxxxxx.wordpress.com/category/my_category/feed/" my_feed = Feedzirra::Feed.fetch_and_parse…
GiaNU
  • 405
  • 2
  • 5
  • 10
0
votes
1 answer

Advanced Feed Parsing in Rails

I am a newbie to rails and I have been watching Rails Casts videos. I am interested to know a little bit more on FeedZirra (Rails casts episode 168) and especially feed parsing. For example, I need to Parse feeds from Telegraph and Guardian I want…
gkolan
  • 1,571
  • 2
  • 20
  • 37
0
votes
1 answer

How do I place instances on a page without access to params in my create method?

I have three models, Subscription, Show, and Episode. Subscription's role is to parse the feed in its :url column and instantiate Show and Episode, filling their columns with Feedjira properties. I'm only able to access the episodes when I go to…
Jane
  • 119
  • 10