使用response = urllib2.urlopen(url)python时缺少数据

时间:2013-11-05 09:22:33

标签: python urllib2 urllib urlopen

我在python中使用urllib2来获取网站的响应。但响应返回错过了一些数据。当我在php中使用file_get_contents时,它会返回完整的数据。这是我使用的代码:

response = urllib2.urlopen(url)
print response.read()

0 个答案:

没有答案
相关问题