Re: [Tutor] feedparser in python

2019-04-30 Thread Alan Gauld via Tutor
On 30/04/2019 00:23, nathan tech wrote: > The results were as follows: > >     tim( a url): 2.9 seconds > >     tim(the downoaded file(: 1.8 seconds > > > That tells me that roughly 1.1 seconds is network related, fair enough. Or about 30% of the time. Since the network element will increas

Re: [Tutor] feedparser in python

2019-04-29 Thread nathan tech
Hi there, After reading your email, I did some further investigation, I first did this test:     import feedparser     import time     def tim(url): k=time.time() feedparser.parse(url) return time.time()-k The results were as follows:     tim( a url): 2.9 seconds  

Re: [Tutor] feedparser in python

2019-04-29 Thread Mats Wichmann
On 4/28/19 6:26 PM, nathan tech wrote: > 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 feed

Re: [Tutor] feedparser in python

2019-04-29 Thread Alan Gauld via Tutor
On 29/04/2019 01:26, nathan tech wrote: > Most recently, I have started work using feedparser. I've never heard of it let alone used it so there may be another forum where you can get specific answers. But let me ask... > I noticed, almost straight away, it's a  bit slow. How do you measure slo

[Tutor] feedparser in python

2019-04-29 Thread nathan tech
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