[Tutor] feedparser in python

nathan tech nathan-tech at hotmail.com
Sun Apr 28 20:26:49 EDT 2019


Hello everyone,

Most recently, I have started work using feedparser.

I noticed, almost straight away, it's a  bit slow.

For instance:

     url="http://feeds.bbci.co.uk/news/rss.xml"

     f1=feedparser.parse(url)


On some feeds, this can take a few seconds, on the talk python to me 
feed, it takes almost 10!

This, obviously, is not ideal when running a program which checks for 
updates every once in a while. Talk about slooooow!


I tried using etag, and modified, but none of the feeds seem to ever 
have them!

Similarly, this doesn't seem to work:

     f2=feedparser.parse(url, f.headers["date"])

What am I doing wrong?

Any help appreciated.

A greatly frustrated Nate




More information about the Tutor mailing list