python爬爬爬之单网页html页面爬取
python爬爬爬之单网页html页面爬取
python爬爬爬之单网页html页面爬取作者:vpoet 日期:大约在夏季
注:随意copy 不用告诉我
#coding:utf-8 import urllib2 Response=urllib2.urlopen("http://www.baidu.com"); Html=Response.read(); print Html;
运行结果:
再看看百度的源码:
是一样,没骗你吧
#coding:utf-8 import urllib2 Response=urllib2.urlopen("http://www.baidu.com"); Html=Response.read(); print Html;
评论关闭