爬蟲6——BeautifulSoup(2)

目錄 BeautifulSoup常用的對象 1.Tag    BeautifulSoup 2.NavigableString    Comment 遍歷生成樹 BeautifulSoup常用的對象 1.Tag    BeautifulSoup Tag就是HTML的一個個標籤。 BeautifulSoup是繼承於Tag類,而其中的find(),find_all()等方法也是Tag類中的方法。 bs=
相關文章
相關標籤/搜索