Random ...
May 2018
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Tags ...

python+zope++:: Got Feed? get them with kebasFeed
Posted at 23.Jan,2008 20:51  Comments 0 / Trackbacks 0 / Like this post!
Technorati tag(s):

Spent some time today making a feed scraper using feedparser

The end result is kebasFeed, v 0.0 This is not for the faint hearted. kebasFeed is really a simple RSS/Atom feed reader that will get the feed fed and add it to zope.

We can then use the entries as we would any other zope object. Display it with DTML, PT or Script (Python). Do other smart thing with js/ajax. Up to your imagination.

Briefly, we add kebasFeed instance, give it the rss/atom url. We set a cron job or windows task scheduler to call the instance/updateRSS method.

kebasFeed is a result of scratching my own itch. It may not satisfy yours, so patches are welcome.

There are some problems dealing with unicode, so pointers are sought. Currently, if we got a feed with encoding other than ascii, kebasFeed will do .encode(ascii,'xmlcharreplace)

Check out the demo

p/s - I didn;t use any five or zope3 way of making products. As always, pointers are welcome.

Bookmark and Share

Is this entry helpful? Comments/Donate/Click some google ads.  
Trackback is http://myzope.kedai.com.my/blogs/kedai/172/tbping 

Post a comment