Python2中的urllib模块,在Python3中被修改为
20.5. urllib.request — Extensible library for opening URLs 20.6. urllib.response — Response classes used by urllib 20.7. urllib.parse — Parse URLs into components 20.8. urllib.error — Exception classes raised by urllib.request 20.9. urllib.robotparser — Parser for robots.txt
这几个模块,常用的urllib.urlopen()方法变成了urllib.request.urlopen()方法,其它方法的改变,可以参考Python3的文档
Python3文档的互联网协议与支持部分:http://docs.python.org/py3k/library/internet.html