使用python作最簡單的爬蟲

使用python作最簡單的爬蟲html --之心python #第一種方法 import urllib2 #將urllib2庫引用進來 response=urllib2.urlopen("http://www.baidu.com") #調用庫中的方法,將請求迴應封裝到response對象中 html=response.read() #調用response對象的read()方法,將回應字符串賦給h
相關文章
相關標籤/搜索