My favorites | Sign in
Project Logo
                
Details: Show all Hide all

Older

  • Oct 20, 2009
    Readme Wiki page commented on by nselenkov   -   maybe add "Install" section?
    maybe add "Install" section?
  • Oct 03, 2009
    issue 30 (Blogspot feeds (atom) now have wrong post permalink) commented on by apdavidson   -   I just forked simple-rss at github and fixed this. Turns out that simple-rss is just taking the first <link> tag that it comes across and using that as the link for a post, which in the case of Blogspot ATOM is the comments link. On inspection of the RFC ( http://www.ietf.org/rfc/rfc4287.txt ) it says (section 4.2.7.2) : " atom:link elements MAY have a "rel" attribute that indicates the link relation type. If the "rel" attribute is not present, the link element MUST be interpreted as if the link relation type is "alternate". " Looking at the Blogspot ATOM, it looks like every element has a link rel="alternative" that points to the URL you would see if you navigated to the post from the blog homepage, so I've made it choose that link if it exists. Github should build the gem automatically - but it's taking a long time to do it, so in the meantime, you can download it from http://github.com/aldavidson/simple-rss and build it locally: gem uninstall simple-rss cd (source root) rake gem cd pkg gem install -l simple-rss That should fix the problem
    I just forked simple-rss at github and fixed this. Turns out that simple-rss is just taking the first <link> tag that it comes across and using that as the link for a post, which in the case of Blogspot ATOM is the comments link. On inspection of the RFC ( http://www.ietf.org/rfc/rfc4287.txt ) it says (section 4.2.7.2) : " atom:link elements MAY have a "rel" attribute that indicates the link relation type. If the "rel" attribute is not present, the link element MUST be interpreted as if the link relation type is "alternate". " Looking at the Blogspot ATOM, it looks like every element has a link rel="alternative" that points to the URL you would see if you navigated to the post from the blog homepage, so I've made it choose that link if it exists. Github should build the gem automatically - but it's taking a long time to do it, so in the meantime, you can download it from http://github.com/aldavidson/simple-rss and build it locally: gem uninstall simple-rss cd (source root) rake gem cd pkg gem install -l simple-rss That should fix the problem
  • Jun 09, 2009
    issue 32 (parsing error with valid atom feed (undefined method `channe...) commented on by sciocco   -   From http://groups.google.com/group/rubyonrails-talk/msg/2066194a834a5ccf : FeedNormalizer::FeedNormalizer.parse(xml, :force_parser => FeedNormalizer::SimpleRssParser, :try_others => true)
    From http://groups.google.com/group/rubyonrails-talk/msg/2066194a834a5ccf : FeedNormalizer::FeedNormalizer.parse(xml, :force_parser => FeedNormalizer::SimpleRssParser, :try_others => true)
  • Jun 03, 2009
    issue 31 (Atom feeds don't have to have a channel and break rss.rb? B...) commented on by denro03   -   i can confirm this
    i can confirm this
  • May 19, 2009
    issue 34 (Compatibility issues with Hpricot 0.8.1) reported by fpbouchard   -   FeedNormalizer 1.5.1 & Hpricot 0.8.1 Running the test suite yields: test_clean(FeedNormalizerTest): NoMethodError: undefined method `raw_string=' for "~:caboose":Hpricot::Text The Hpricot text setter hack seems to be deprecated in this Hpricot version.
    FeedNormalizer 1.5.1 & Hpricot 0.8.1 Running the test suite yields: test_clean(FeedNormalizerTest): NoMethodError: undefined method `raw_string=' for "~:caboose":Hpricot::Text The Hpricot text setter hack seems to be deprecated in this Hpricot version.
  • May 18, 2009
    issue 31 (Atom feeds don't have to have a channel and break rss.rb? B...) commented on by bgrant01101   -   make sure you are running sanitize 1.0.8 +
    make sure you are running sanitize 1.0.8 +
  • Jan 27, 2009
    issue 33 (improper parsing of content:encoded) reported by jackphelps   -   What steps will reproduce the problem? feed = FeedNormalizer::FeedNormalizer.parse open('http://feedproxy.google.com/AVc') What is the expected output? What do you see instead? I expect each parsed content element to match the content:encoded element in the feed. Instead, the parser appears to grab the address of the first link contained in the content. What version of the product are you using? On what operating system? 1.4.0 on windows. Please provide any additional information below. The feed doesn't validate, but for what appear to me to be unrelated reasons. I am not a very experienced coder, and figuring this out was beyond my skillset. Thanks for the great lib!
    What steps will reproduce the problem? feed = FeedNormalizer::FeedNormalizer.parse open('http://feedproxy.google.com/AVc') What is the expected output? What do you see instead? I expect each parsed content element to match the content:encoded element in the feed. Instead, the parser appears to grab the address of the first link contained in the content. What version of the product are you using? On what operating system? 1.4.0 on windows. Please provide any additional information below. The feed doesn't validate, but for what appear to me to be unrelated reasons. I am not a very experienced coder, and figuring this out was beyond my skillset. Thanks for the great lib!
  • Jan 25, 2009
    issue 32 (parsing error with valid atom feed (undefined method `channe...) commented on by herr.ernst   -   seems to be the same as issue 31 (http://code.google.com/p/feed-normalizer/issues/detail?id=31)
  • Jan 25, 2009
    issue 32 (parsing error with valid atom feed (undefined method `channe...) reported by herr.ernst   -   What steps will reproduce the problem? require 'rubygems' require 'feed-normalizer' url="http://www.fscklog.com/atom.xml" FeedNormalizer::FeedNormalizer.parse(url) What is the expected output? What do you see instead? /usr/local/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.1/lib/parsers/rss.rb:51:in `package': undefined method `channel' for #<RSS::Atom::Feed:0xb7873cac> (NoMethodError) from /usr/local/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.1/lib/parsers/rss.rb:23:in `parse' from /usr/local/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.1/lib/feed- normalizer.rb:130:in `parse' from /usr/local/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.1/lib/feed- normalizer.rb:129:in `each' from /usr/local/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.1/lib/feed- normalizer.rb:129:in `parse' What version of the product are you using? On what operating system? feed-normalizer (1.5.1) - gem on debian stable Please provide any additional information below. similar error with this feed: http://feeds.feedburner.com/Fontblog (even if it is a valid atom feed: http://feedvalidator.org/check.cgi?url=http%3A%2F%2Ffeeds.feedburner.com%2FFontblog )
    What steps will reproduce the problem? require 'rubygems' require 'feed-normalizer' url="http://www.fscklog.com/atom.xml" FeedNormalizer::FeedNormalizer.parse(url) What is the expected output? What do you see instead? /usr/local/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.1/lib/parsers/rss.rb:51:in `package': undefined method `channel' for #<RSS::Atom::Feed:0xb7873cac> (NoMethodError) from /usr/local/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.1/lib/parsers/rss.rb:23:in `parse' from /usr/local/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.1/lib/feed- normalizer.rb:130:in `parse' from /usr/local/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.1/lib/feed- normalizer.rb:129:in `each' from /usr/local/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.1/lib/feed- normalizer.rb:129:in `parse' What version of the product are you using? On what operating system? feed-normalizer (1.5.1) - gem on debian stable Please provide any additional information below. similar error with this feed: http://feeds.feedburner.com/Fontblog (even if it is a valid atom feed: http://feedvalidator.org/check.cgi?url=http%3A%2F%2Ffeeds.feedburner.com%2FFontblog )
  • Nov 14, 2008
    issue 31 (Atom feeds don't have to have a channel and break rss.rb? B...) reported by n...@inventric.com   -   What steps will reproduce the problem? require 'feed-normalizer' sfeed = 'http://farstars.blogspot.com/atom.xml' entry = FeedNormalizer::FeedNormalizer.parse(open(sfeed)).entries.first What is the expected output? What do you see instead? NoMethodError: undefined method `channel' for #<RSS::Atom::Feed:0x44a13e4> from /usr/local/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.1/lib/parsers/rss.rb:51:in `package' from /usr/local/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.1/lib/parsers/rss.rb:23:in `parse' What version of the product are you using? On what operating system? Mac OSX
    What steps will reproduce the problem? require 'feed-normalizer' sfeed = 'http://farstars.blogspot.com/atom.xml' entry = FeedNormalizer::FeedNormalizer.parse(open(sfeed)).entries.first What is the expected output? What do you see instead? NoMethodError: undefined method `channel' for #<RSS::Atom::Feed:0x44a13e4> from /usr/local/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.1/lib/parsers/rss.rb:51:in `package' from /usr/local/lib/ruby/gems/1.8/gems/feed-normalizer-1.5.1/lib/parsers/rss.rb:23:in `parse' What version of the product are you using? On what operating system? Mac OSX
  • Nov 08, 2008
    issue 30 (Blogspot feeds (atom) now have wrong post permalink) commented on by annaincalif   -   "I was able to find an RSS feed at ..." Unfortunately, when I grab that one via my script, the server sends me Atom instead. (whereas if I grab it using Firefox, it works correctly) I've run into this "different formats returned to different platforms" problem before. I hate this, & haven't been able to figure out how to get my script to lie convincingly enough to have the desired format returned instead.
    "I was able to find an RSS feed at ..." Unfortunately, when I grab that one via my script, the server sends me Atom instead. (whereas if I grab it using Firefox, it works correctly) I've run into this "different formats returned to different platforms" problem before. I hate this, & haven't been able to figure out how to get my script to lie convincingly enough to have the desired format returned instead.
  • Nov 06, 2008
    issue 30 (Blogspot feeds (atom) now have wrong post permalink) commented on by sciodev   -   While I don't have a code fix for this, all I can suggest for now is to try and locate the RSS feeds for blogspot. The above 'rss.xml' URL is now serving up Atom, hence the problem. I was able to find an RSS feed at http://initforthegold.blogspot.com/feeds/posts/default?alt=rss - maybe you can apply this URL style to other blogspot feeds?
    While I don't have a code fix for this, all I can suggest for now is to try and locate the RSS feeds for blogspot. The above 'rss.xml' URL is now serving up Atom, hence the problem. I was able to find an RSS feed at http://initforthegold.blogspot.com/feeds/posts/default?alt=rss - maybe you can apply this URL style to other blogspot feeds?
  • Nov 06, 2008
    issue 30 (Blogspot feeds (atom) now have wrong post permalink) commented on by annaincalif   -   Unfortunately, the "rss.xml" workaround doesn't work all the time, anymore - e.g. it fails for http://initforthegold.blogspot.com/rss.xml (since the first URL encountered, for an entry, is _not_ the entry's permalink)
    Unfortunately, the "rss.xml" workaround doesn't work all the time, anymore - e.g. it fails for http://initforthegold.blogspot.com/rss.xml (since the first URL encountered, for an entry, is _not_ the entry's permalink)
  • Oct 08, 2008
    issue 25 (Subtags for <author>) changed by sciodev   -  
    Status: Accepted
    Owner: sciodev
    Labels: Priority-Low Priority-Medium
    Status: Accepted
    Owner: sciodev
    Labels: Priority-Low Priority-Medium
  • Oct 08, 2008
    issue 21 (Support enclosures) Status changed by sciodev   -  
    Status: Accepted
    Status: Accepted
  • Oct 08, 2008
    issue 29 (System hangs while doing feed parsing) changed by sciodev   -  
    Status: Accepted
    Owner: sciodev
    Status: Accepted
    Owner: sciodev
  • Oct 08, 2008
    issue 30 (Blogspot feeds (atom) now have wrong post permalink) changed by sciodev   -   Thanks for reporting this bug. I took a further look at this, and it appears this is a limitation of the underlying atom parser, SimpleRSS. SimpleRSS is a more simplistic back-up parser, that can handle more liberally-formatted feeds. It also happens to be the only parser in feed-normalizer that handles Atom. In its liberal approach, it also takes a simpler approach, and only picks up the first 'link' that appears for each Atom entry. In this case, this is the comments URL. The actual real link is the 4th, and last one for the entry, which SimpleRSS ignores. I have confirmed this is true for all blogger atom feeds now. This isn't cool. What I can suggest for now is to use the RSS feed provided at http://farstars.blogspot.com/rss.xml instead. All blogspot urls should support this method of referencing RSS feeds. In the long term, a better Atom parser needs to be added. Ruby will also have a native implementation fairly soon, that could be plugged in top feed-normalizer. Patches welcome :)
    Status: Accepted
    Owner: sciodev
    Labels: Priority-High OpSys-All Usability Priority-Medium
    Thanks for reporting this bug. I took a further look at this, and it appears this is a limitation of the underlying atom parser, SimpleRSS. SimpleRSS is a more simplistic back-up parser, that can handle more liberally-formatted feeds. It also happens to be the only parser in feed-normalizer that handles Atom. In its liberal approach, it also takes a simpler approach, and only picks up the first 'link' that appears for each Atom entry. In this case, this is the comments URL. The actual real link is the 4th, and last one for the entry, which SimpleRSS ignores. I have confirmed this is true for all blogger atom feeds now. This isn't cool. What I can suggest for now is to use the RSS feed provided at http://farstars.blogspot.com/rss.xml instead. All blogspot urls should support this method of referencing RSS feeds. In the long term, a better Atom parser needs to be added. Ruby will also have a native implementation fairly soon, that could be plugged in top feed-normalizer. Patches welcome :)
    Status: Accepted
    Owner: sciodev
    Labels: Priority-High OpSys-All Usability Priority-Medium
  • Sep 30, 2008
    issue 30 (Blogspot feeds (atom) now have wrong post permalink) reported by annaincalif   -   What steps will reproduce the problem? 1. require 'feed-normalizer' sfeed = 'http://farstars.blogspot.com/atom.xml' entry = FeedNormalizer::FeedNormalizer.parse(open(sfeed)).entries.first puts entry.title puts entry.urls.first puts entry.urls.size 2. 3. What is the expected output? What do you see instead? Expected (and former) output: entry.urls.first was a permalink to the post. Now: it's a permalink to the comments feed, and there's no other field (AFAIK) that I can use to get the permalink to the post. I want a permalink to the post. What version of the product are you using? On what operating system? feed-normalizer 1.5.1, WinXP Please provide any additional information below. The problem cropped up about a week ago, I think.
    What steps will reproduce the problem? 1. require 'feed-normalizer' sfeed = 'http://farstars.blogspot.com/atom.xml' entry = FeedNormalizer::FeedNormalizer.parse(open(sfeed)).entries.first puts entry.title puts entry.urls.first puts entry.urls.size 2. 3. What is the expected output? What do you see instead? Expected (and former) output: entry.urls.first was a permalink to the post. Now: it's a permalink to the comments feed, and there's no other field (AFAIK) that I can use to get the permalink to the post. I want a permalink to the post. What version of the product are you using? On what operating system? feed-normalizer 1.5.1, WinXP Please provide any additional information below. The problem cropped up about a week ago, I think.
  • Jul 24, 2008
    issue 29 (System hangs while doing feed parsing) reported by nakula   -   What steps will reproduce the problem? 1. FeedNormalizer::FeedNormalizer.parse(Net::HTTP.get(URI.parse("http://www.chinadaily.com.cn/rss/cndy_rss.xml"))) What is the expected output? What do you see instead? parsed feed but nothing comes.. it just hangs What version of the product are you using? On what operating system? Mac OSX tiger, Ubuntu feisty Please provide any additional information below.
    What steps will reproduce the problem? 1. FeedNormalizer::FeedNormalizer.parse(Net::HTTP.get(URI.parse("http://www.chinadaily.com.cn/rss/cndy_rss.xml"))) What is the expected output? What do you see instead? parsed feed but nothing comes.. it just hangs What version of the product are you using? On what operating system? Mac OSX tiger, Ubuntu feisty Please provide any additional information below.
 
Hosted by Google Code