Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 607725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:23:24+00:00 2026-05-13T17:23:24+00:00

I am using Feedzirra to parse my RSS feeds and it works very well

  • 0

I am using Feedzirra to parse my RSS feeds and it works very well — it is twice as fast Feed Normalizer in my initial testing. More importantly, it has nice wrappers that check for updated entries inside a feed. When I was using its feed-update approach, I ran into some issues:

require 'feedzirra'

feed = Feedzirra::Feed.fetch_and_parse("http://feeds.feedburner.com/TechCrunch")
puts feed.etag #outputs the right tag 

The above code prints the correct ETag (checked with Firebug). Now, when I want to check for updates, feedzirra asks you for current etags, last-modified date, etc. When I give it the right ETag, it says there are no updates – that’s great. However, if I don’t specify an ETag, it does not grab the latest ETag after it grabs all the feeds. That’s an issue because if an update happens and I have a stale ETag, I will never be able to grab the current ETag short of calling fetch_and_parse – a waste of another fetch.

feed_to_update = Feedzirra::Parser::Atom.new
feed_to_update.feed_url = "http://feeds.feedburner.com/TechCrunch"
feed_to_update.etag = nil
feed_to_update.last_modified = nil

last_entry = Feedzirra::Parser::AtomEntry.new
last_entry.url = nil 

feed_to_update.entries = [last_entry]

updated_feed = Feedzirra::Feed.update(feed_to_update)

puts updated_feed.updated?
puts updated_feed.etag

The above example is a modified version that is part of the documentation from the author: http://gist.github.com/132671. I also tried to give a previous ETag value and it does not get updated – I chose to use nil in the above code because the ETags change frequently for Techcrunch.

The output I get is:

true    

#note the above line is blank (basically printing nil)

Am I doing something wrong and using the functions incorrectly in any way? or is this a bug with the program? Any other suggestions on how to look for updated feeds?

Btw, I also tried just using the ‘last-modified-date’ value and it always thinks there are new entries even if the date matches with the header response.

Thanks,
-e

update: In the output I had incorrectly typed in 25 above the blank line. I have fixed that now. sorry.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:23:25+00:00Added an answer on May 13, 2026 at 5:23 pm

    I looked at the source code and found that etag was not being properly updated. So this seems to fix it:

    After the line below (in add_feed_to_multi() of feed.rb)

    feed.update_from_feed(updated_feed) 
    

    I added this line:

    feed.etag = updated_feed.etag 
    

    I still have not found a way to resolve last_modified issues but for now etags are working.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been using Feedzirra for a while to grab single feeds and parse them
Background: I'm trying to create a simple feed reader for which I'm using the
Using the C# Facebook SDK 5.0.3 everything works fine whit the client.Get(/me). But when
Using of mobile dialog authentication is working well for other mobile devices except on
Using UIWebview with basic authentication ( authentication works ) however I am not getting
Using LINQ on collections, what is the difference between the following lines of code?
using (var file_stream = File.Create(users.xml)) { var serializer = new XmlSerializer(typeof(PasswordManager)); serializer.Serialize(file_stream, this); file_stream.Close();
Using Nunit, I want to be able to write a test fixture that will
Using a restful resource in Rails, I would like to be able to insert
Using Flex 3, I would like to take an image snapshot such as this:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.