甜美鸭子

文章
4
资源
0
加入时间
3年2月3天

BeautifulSoup 用法记录

soup = BeautifulSoup(html_content, 'html.parser')### 查找指定css的tablelabels = soup.find_all("table", class_="cls_name")### 正则匹配指定的urllinks = table.find_all("a", href=re.compile(r"/[0-9]+\.html"))