【urllib and urllib2】
这是两个python的网络模块 内置的 提供很好的网络访问的功能。
#!coding:utf-8 import urllib2 res = urllib2.urlopen(‘http://www.baidu.com‘) html = res.read() print(html)
03-python-爬虫入门-正则-
原文:http://www.cnblogs.com/nerdlerss/p/7117822.html