views:

305

answers:

2

I'm developing feed reader application in Rails. And i'm new to feed. I've a some questions.

  1. Which is the best way to parsing thousand of RSS/Atom feeds with Rails or JavaScript /jQuery/ ?
  2. Is there any way to get just feed title / not load whole feed / ?
  3. Is there any way to get feed with limit ?

Thanks in advance!

How it works: http://www.google.com/reader/atom/feed/http%3A//stackoverflow.com/feeds/tag/rss?n=10

Please change n variable. It works any rss/atom. Any idea ?

A: 

Maybe this helps you:

http://railscasts.com/episodes/168-feed-parsing

Lichtamberg
I knew. But it's very basic.
Zeck
That rails cast is very basic. See my comment on FeedZirra. It's fast and works really well.
Ariejan
+2  A: 

I can highly recommend feedzirra (it's a gem, really). I currently use FeedZirra in a production system that is continuously importing thousands of RSS and Atom feeds. It's very easy to use as well.

To your other points: no and no. A feed is a file on the web, which you need to download completely. You can however limit the number of articles you read or import into your database in your own code.

You need to parse the entire file, but it's possible to extract just the titles from each article.

Again, feedzirra makes this really easy for you to do.

http://github.com/pauldix/feedzirra/tree/master

Ariejan
Thanks Ariejan and FeedZirra.
Zeck