利用python写一个简单的小爬虫 爬虫日记(1)(好好学习)
打开py的IDLE
>>>import urllib.request
>>>a=urllib.request.urlopen("http://www.baidu.com")
>>>html=a.read().decode("utf-8")
>>>print(html)
结果:
打开py的IDLE
>>>import urllib.request
>>>a=urllib.request.urlopen("http://www.baidu.com")
>>>html=a.read().decode("utf-8")
>>>print(html)
结果: