Python的BeautifulSoup使用總結

Blog 2018年3月1日 13:57:47 在使用Bs4的find方法時,一定要注意其參數不同: find(tag)----tag是標籤,其返回值是Tag類型,可以對返回值再次調用find或findall方法 find(class_="className")-----這裏對應的是類名 soup.find("div", id='article_show')----標籤和ID混用 rticle.f
相關文章
相關標籤/搜索