response=requests.get(url,proxies=proxies,stream=True)
print response.status_code
with open('facebook.txt','wb') as fd:
for line in response.iter_content(100):
fd.write(line)
print response.status_code
with open('facebook.txt','wb') as fd:
for line in response.iter_content(100):
fd.write(line)
2016-12-28
最新回答 / yc913344706
http://www.python-requests.org/en/master/user/advanced/#custom-authentication我也遇到了这个问题,上面这里是作者的写法,应该是框架中有其他调用的地方,应该是得阅读源码才能知道是怎么调用的。
2016-12-24