📜  如何在 bs4 python 中获取所有 href - 无论代码示例
📅  最后修改于: 2022-03-11 14:57:02.309000             🧑  作者: Mango
代码示例1
from BeautifulSoup import BeautifulSoup
html = '''next
later'''
soup = BeautifulSoup(html)
for a in soup.find_all('a', href=True):
print "Found the URL:", a['href']