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
2
votes
1 answer

feedzirra windows latest curb version issue

I am trying to install feedzirra but I am running into trouble. When I install Feedzirra, it looks for curb (0.7.18). I followed the instructions to install curb on windows >gem install curb -- --with-curl-lib=C:/curl-7.27.0-devel-mingw 32/bin…
gkolan
  • 1,571
  • 2
  • 20
  • 37
2
votes
1 answer

Newbie Ruby on Rails - Pass string to method from view?

I am trying to implement the feedzirra (good railcast: http://railscasts.com/episodes/168-feed-parsing) in my view add_feed but I am having some trouble with it. I want a user to be able to add a feed while he is on the website. I think it should be…
OXp1845
  • 483
  • 2
  • 6
  • 20
2
votes
2 answers

Rails 3, Feedzirra - undefined method `entries' for nil:NilClass

Here's the structure of the feed that I try to parse:
user984621
  • 46,344
  • 73
  • 224
  • 412
1
vote
1 answer

Ruby feed parsing: "Input is not proper UTF-8, indicate encoding!"

I am trying to parse RSS feeds using Feedzirra. Some of them are ok, but others return the error: Error while parsing. Input is not proper UTF-8, indicate encoding ! How do I fix it?
krn
  • 6,715
  • 14
  • 59
  • 82
1
vote
1 answer

Parsing file or streaming input with feedzirra

I've to "parse" a Rails "request.body" on the fly, something like : feed = Feedzirra::Feed.parse(request.body.read) feed.entries do |entry| entry.title # => "Ruby Http Client Library Performance" entry.url # =>…
Luca G. Soave
  • 12,271
  • 12
  • 58
  • 109
1
vote
0 answers

Feedzirra crashes with error msg "Trace/BPT trap"

I have a brand new app, where I have installed feedzirra; my gem file looks like this: source 'http://rubygems.org' source 'http://gems.github.com' gem 'rails', '3.0.5' gem 'sqlite3' gem 'pauldix-feedzirra' gem 'taf2-curb' And my controller looks…
hso
  • 345
  • 3
  • 19
1
vote
1 answer

Cache and Paginate RSS Feed in Rails

I'm working on a life-streaming type app in Rails and am constantly parsing several different RSS feeds using Feedzirra. To support scaling of the app, I have to implement some kind of caching while also allowing to paginate the cached results in…
ericalli
  • 1,203
  • 15
  • 25
1
vote
1 answer

how to cache feedzirra heroku

any idea how to cache feedzirra rss on heroku ?
feedzirra
  • 11
  • 2
1
vote
3 answers

gem problems with snow leopard and nokogiri bluecloth and feedzirra

I just upgraded to snow leopard, ran the migration assistant and have spent hours and hours trying to get these gems to work with no luck. When I try to start my server I get the errors below. All the gems that are missing are actually in vendor…
Joelio
  • 4,621
  • 6
  • 44
  • 80
1
vote
1 answer

Relating two models and accessing them with a single controller in Rails

Background: I am playing around with the feedzirra plugin in a rails app, and I am attempting to utilize both the feed and entry accessors of the parsed feed in a single view. To accomplish this, I have created two models: feed and feed_entry. They…
1
vote
1 answer

How to install curl on windows for ruby on rails

I am new to ruby on rails. Could you please help me to install curl. I have windows 7 and ruby 1.8.7 I need to install Paul Dix's FeedZirra. I need curl for that. Also could you help me with gem install curb. Even curb seems to need Curl Looking…
gkolan
  • 1,571
  • 2
  • 20
  • 37
1
vote
1 answer

How to get Feedjira to work with HTTPS feeds?

For instance, the following example code returns 0: require 'feedjira' feed_parsed = Feedjira::Feed.fetch_and_parse("https://news.yahoo.com/rss/topstories") puts feed_parsed
Evan Appleby
  • 284
  • 4
  • 17
1
vote
2 answers

Rails Parsing RSS Feed Feedzirra / Feedjira with simple_format

I'm using Feedjira (Feedzirra) https://github.com/feedjira/feedjira to parse rss feeds in rails. I need a way to remove html tags from the title of the rss feed items before I save to database. in my create method which saves the feed item to the…
user3213561
  • 359
  • 1
  • 4
  • 15
1
vote
1 answer

Rails 4 - Update Active Record entry If changes are present as compared to source?

Basically I have a blog type application that can have posts created from an rss source feed, for which I'm using the feedzirra gem: def self.update_from_feed feed_url = ENV['FEED_URL'] feed = Feedzirra::Feed.fetch_and_parse(feed_url) …
Jon Girard
  • 245
  • 1
  • 4
  • 15
1
vote
1 answer

rails too many open files using Feedzirra

I am getting a LoadError - "Too many open files" when using Feedzirra. I am running it on my development server using the default WEBrick server. I am parsing only 2 feeds. What is the problem?
Kevin Low
  • 31
  • 2