官方文档
https://beautifulsoup.readthedocs.io/zh_CN/v4.4.0/
使用case:
soup.find_all('a')
# [Elsie,
# Lacie,
# Tillie]
从文档中找到所有标签的链接:
for link in soup.find_all('a'):
print(link.get('href'))
# http://example.com/elsie
# http://example.com/lacie
# http://example.com/tillie
doing