Python——爬蟲學習2

BeautifulSoup插件的使用 這個插件需要先使用pip安裝(在上一篇中不再贅言),然後再程序中申明引用 from bs4 import BeautifulSoup html=self.requests(url)#調用requests函數把套圖地址傳入會返回一個response all_a=BeautifulSoup(html.text,'lxml').find('div',class_=
相關文章
相關標籤/搜索