📜  获取所有 h1 beautifulsoup - Python 代码示例
📅  最后修改于: 2022-03-11 14:47:06.931000             🧑  作者: Mango
代码示例1
# to get all h1 from the page
soup = BeautifulSoup('html_file', 'html.parser')
all_h1 = soup.find_all('h1')