ttscoff / Slogger

Social logging script for Day One
757 stars 160 forks source link

RSSLogger w/ Blogger #19

Open lmergner opened 12 years ago

lmergner commented 12 years ago

I'm not a programmer so I'm not going to try to fix this myself. But I thought you might find the error helpful. I've changed my specific blog to a generic "myblog" in the url. The rss.xml endpoint works for NetNewsWire.

10:04:16 RSSLogger: Logging rss posts for feeds http://myblog.blogspot.com/rss.xml

<NoMethodError: private method `gsub' called for #>

! 10:04:17 RSSLogger: Error parsing http://myblog.blogspot.com/rss.xml, retrying (1/1)

<NoMethodError: private method `gsub' called for #>

!!10:04:20 RSSLogger: Could not parse feed http://myblog.blogspot.com/rss.xml

ttscoff commented 12 years ago

you know there's nothing in that feed, right? Hard to parse something with no entries.

lmergner commented 12 years ago

As I said in the issue, I changed the url to a generic 'myblog' for privacy. But since you want to doublecheck it:

http://lmergner.blogspot.com/rss.xml

I made sure that NetNewsWire is reading that feed already. So I assume it is working properly.

And this is why I don't leave bug reports, it is always something embarrassingly stupid I've done.

ttscoff commented 12 years ago

It's not you. Feedburner uses a "Smartfeed" to deliver the type of feed that the reader can handle. The Ruby RSS reader doesn't seem to like Atom, but that's what Feedburner is sending. I need to figure out how to identify myself to Feedburner as an RSS2 client and see if I can get a proper RSS feed back.

lmergner commented 12 years ago

I wondered when I saw the feed redirect to feedburner. I only know some rudimentary Python (https://bitbucket.org/lmergner/lapp) but I'm happy to help if you need it.

ttscoff commented 12 years ago

It'll have to be written in Ruby, but if you can find a way to do the above your assistance is more than welcome :).

lmergner commented 12 years ago

Ok, so far I have stolen what I think is the test for Feedburner urls in feedzirra:

  start_of_doc = rss_content.slice(0, 2000)
  if (/\<rss|\<rdf/ =~ start_of_doc) && (/feedburner/ =~ start_of_doc) # if feedburner 

And I'm trying to understand how ruby uses his class definition to parse the entry body. But since I'm unlikely to succeed, I thought I'd pass at least that little bit along.