urllib2实现的一个简单的爬虫代码

1.

  1. import  urllib2  
  2. response = urllib2.urlopen( 'http://www.baidu.com/' )  
  3. html = response.read()  
  4. print  html
posted on 2014-09-27 21:37  yuyezhulan  阅读(108)  评论(0)    收藏  举报