📜  bs 如何查找链接 - 无论代码示例

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

代码示例1
for link in soup.find_all('a'):
    print(link.get('href'))
# http://example.com/elsie
# http://example.com/lacie
# http://example.com/tillie