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
5
votes
4 answers

Unpacking gems [Rails 2.3.5]

I have the following gems defined in my environment.rb file: config.gem "authlogic" config.gem "paperclip" config.gem "pauldix-feedzirra", :lib => "feedzirra", :source => "http://gems.github.com" config.gem 'whenever', :lib => false, :source…
Yuval Karmi
  • 26,277
  • 39
  • 124
  • 175
4
votes
2 answers

How do I make bundler recognize installed curb gem?

I've successfully installed the curb gem on Mac OS X using sudo env ARCHFLAGS="-arch x86_64" gem install curb but when trying to run bundle install I still get this error: Installing curb (0.7.16) with native extensions…
4
votes
2 answers

Parsing custom feed elements using FeedZirra

Is there a way to parse feed's custom elements? Not feed entries', feed's custom elements. I know there is a way to do the same for the entries. Like, Feedzirra::Feed.add_common_feed_entry_element("wfw:commentRss", :as => :comment_rss) feed =…
Chirantan
  • 15,304
  • 8
  • 49
  • 75
4
votes
2 answers

Setting up Curb in windows

I'm trying to use feedzirra with Rails 3 On Windows 7, but have been having real issues getting Curl and Curb installed. I found this question Install Ruby Curb gem in windows XP which enabled me to get the gem installed successfully, but now when…
Ben
  • 1,767
  • 16
  • 32
3
votes
1 answer

Feedzirra incompatible with Rails 3.1.1?

Bundler could not find compatible versions for gem "builder": In Gemfile: rails (= 3.1.1) depends on builder (~> 3.0.0) feedzirra (~> 0.1.1) depends on builder (2.1.2) Does it mean, that the latest feedzirra version is…
krn
  • 6,715
  • 14
  • 59
  • 82
3
votes
1 answer

How to fetch multiple feeds concurrently

I am new to ruby on rails and I have just started watching rails casts tutorials. To parse feeds, I have started using feed zirra. To fetch multiple feeds at once, feedzirra has this feature feed_urls =…
gkolan
  • 1,571
  • 2
  • 20
  • 37
3
votes
1 answer

Feedzirra - How to get updated RSS feed?

The following code is from the gist on Feedzirra to get the updated content from a RSS feed: feed = Feedzirra::Feed.fetch_and_parse(feed_url) feed = Feedzirra::Feed.update(feed) do_something_with_new_feed(feed.new_entries) if feed.updated? I don't…
user2345093
  • 623
  • 6
  • 13
2
votes
1 answer

Feed thumbnails with Feedzirra

I'm using Feedzirra to update RSS feeds. I am currently getting thumbnails for individual entries like this. Feedzirra::Feed.add_common_feed_entry_element("media:thumbnail",:value => :url, :as => :thumbnail) feed =…
2
votes
2 answers

Loading feeds / entries getting undefined method 'entries' for 0:fixnum error

I trying to load feeds from my blog but this is resulting in the error in the title mentioned. The error message: NoMethodError (undefined method `entries' for 0:Fixnum): app/controllers/pages_controller.rb:6:in `home' This is how I'm doing: I…
Kleber S.
  • 8,110
  • 6
  • 43
  • 69
2
votes
1 answer

Parse Youtube atom feeds on Ruby

I use http://gdata.youtube.com/feeds/api/videos/1i8s245jxRE which return an atom feed to get statistics from youtube. It works in Python using feedparser. Is there any equivalent gem to do it in Ruby? I tried simple-rss and get SimpleRSSError:…
daisy
  • 47
  • 1
  • 8
2
votes
2 answers

Ruby, Feedzirra, typhoeus

I'm really new to Ruby (first day!) and I'm struggling with this here. I'm trying to build a rss-parser in combination with Typhoeus since I'm parsing over 100 feeds and also because I want to get it working. So that is my code here: require…
brainbug
  • 65
  • 7
2
votes
1 answer

Feedzirra cannot parse atom feeds

The idea of having a single parser for any kind of feed is great and was hoping that it would work for me. I have been trying to get feedzirra to parse atom…
truthSeekr
  • 1,603
  • 4
  • 25
  • 44
2
votes
5 answers

Error installing FeedZirra

I am new to Ruby on Rails. I am excited about Feed parsing but when I install FeedZirra I am getting this error. I use Windows 7 and Ruby 1.8.7. Please help. Thanks in advance. C:\Ruby187>gem sources -a http://gems.github.com http://gems.github.com…
gkolan
  • 1,571
  • 2
  • 20
  • 37
2
votes
1 answer

Feedzirra and Hash Sorting

I am using Feedzirra and am trying to sort a hash of feed data by the published date. I'm not getting an error or anything, it just isn't sorting. Here's the code in my controller: class ClassifiedsController < ApplicationController def index …
Danny I.
  • 57
  • 5
2
votes
1 answer

Installing libCurl - ruby 1.9.3 .. rails 3.2.12 .. Windows

So, I'm trying to get feedzirra up and running... ruby 1.9.3p448 Rails 3.2.12 I went to http://curl.haxx.se/download.html#Win32 and downloaded Win32 2000/XP 7.32.0 libcurl SSL. It may be obvious, but this is libcurl -v 7.32. I unzipped the…
Dudo
  • 4,002
  • 8
  • 32
  • 57
1
2 3 4 5