[Python]网络爬虫(四):Opener与Handler的介绍和实例应用

更好的学习网址:http://www.voidspace.org.uk/python/articles/urllib2.shtml#openers-and-handlers 以下为个人学习笔记。 在开始后面的内容之前,先来解释一下urllib2中的两个个方法:info and geturl  urlopen返回的应答对象response(或者HTTPError实例)有两个很有用的方法info()和
相关文章
相关标签/搜索