How to speed up read method call of object returned by urllib2.urlopen
I have following code.
req = urllib2.Request(url,'',txheaders)
f = urllib2.urlopen(req)
data = f.read(开发者_Go百科)
f.close()
In the above code, the read function takes 1-2 minutes when response is of 58KB. How can I make this faster.
精彩评论