开发者

Consuming RSS in Django ( / Python)

开发者 https://www.devze.com 2023-02-18 02:05 出处:网络
For a site I\'m working on I would like to import a lot of RSS feeds using Django. Since I need the content of them fast I will need to cache them locally (either in the database or in some other way)

For a site I'm working on I would like to import a lot of RSS feeds using Django. Since I need the content of them fast I will need to cache them locally (either in the database or in some other way)

Is there a standard app to do RSS consumption in Django, or is there a standard way to do this in Python?

Of course I could implement it myself, but I'd rather reuse a good piece of code (since there's a lot of stuff to consider, like what to do when an item updates, how long to wait before checking for updates, etc, and I'd rather reuse someone elses thinking about this).

(I did google django and rss, but everything that seems to popup is feed generation; surely there must be other sites out there using Django and consumin开发者_高级运维g RSS?)


Check outhttp://feedparser.org/docs/ http://code.google.com/p/feedparser/

One of the best Python libraries for parsing RSS and Atom Feeds; although it seems like you want to do a bit more (caching, auto-refresh etc.)

0

精彩评论

暂无评论...
验证码 换一张
取 消