📜  使用美丽的汤获取href - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:27.728000             🧑  作者: 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']