python - 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()  f.close() 

in above code, read function takes 1-2 minutes when response of 58kb. how can make faster.


Comments

Popular posts from this blog

php - How to build a web site which gives a sub-domain dynamically to every registered user? -

Delphi Wmi Query on a Remote Machine -