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

Set ActiveRecord errors on object inside create method of controller

I want to check to see if a feed I retrieve based on a user-specified url is nil, but I can't seem to find a good way to handle this. I feel the best way to handle it would be to set a custom ActiveRecord error upon checking via if statement like…
Ken W
  • 962
  • 4
  • 12
  • 19
0
votes
1 answer

Feed Encoding Problems Ruby 1.9

i am trying to parse rss/atom-feeds in my rails app, but i encountered some serious problems with non-ASCII characters, eg. the german umlauts ÄÖÜ or ß. Some feeds in the wild use proper UTF-8, but some others make me cry. The general Problem is:…
Maximilian Stroh
  • 1,086
  • 1
  • 10
  • 26
0
votes
2 answers

Regularly import each user's RSS feed with Feedzirra in Rails

I'm trying to regularly import an array of RSS feeds into my Posts table in Rails. I'm trying to avoid Cron for the moment. Here's what I have so far (in my application controller). require 'rubygems' require 'rufus/scheduler' require…
user1152706
  • 73
  • 2
  • 4
0
votes
2 answers

How to Parse JSON in Feedzilla API

Hi am working on FeedZilla API for data access in JASON format. I am getting the response but unable to show it. Here is my code.