📌  相关文章
📜  beautifulsoup 查找多个标签 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:51.729000             🧑  作者: Mango

代码示例1
html = driver.page_source
soup = BeautifulSoup(html)
i = 0
for tag in soup.find_all(['a',’div’]):
    print (tag.text)