- urllib和urllib2都是接受URL请求的相关模块,但是提供了不同功能。
- urllib2可以接受一个Request类的实例来设置URL请求的headers,urllib仅可以接受URL。这意味着,你不可以伪装你的User Agent字符串等会。
- urllib提供urlencode方式用来GET查询字符串的产生,而urllib2没有。
- http://www.cnblogs.com/yuxc/archive/2011/08/01/2124073.html
- http://www.jb51.net/article/46495.htm 验证,cookie其他高级http功能函数详解
- http://python.jobbole.com/81359/ 爬虫介绍