Datawhale爬蟲學習Task 2

BeautifulSoup (1)百度含義: (2)安裝bs4;導入;創建 打開prompt輸入pip install beautifulsoup4 導入:from bs4 import BeautifulSoup 創建:soup = BeautifulSoupaa(html,‘html.perser’) (3)用法 bs庫的遍歷 BS實例分析 自己嘗試 2.xpath (1)含義: (2)爬取丁
相關文章
相關標籤/搜索