利用python写一个简单的小爬虫 爬虫日记(1)(好好学习)

打开py的IDLE

>>>import urllib.request

>>>a=urllib.request.urlopen("http://www.baidu.com")

>>>html=a.read().decode("utf-8")

>>>print(html)

结果:

 

posted on 2017-06-15 11:17  东京$  阅读(343)  评论(0编辑  收藏  举报

导航