import requests
from bs4 import BeautifulSoup
page = requests.get("https://evaly.com.bd/")
soup = BeautifulSoup(page.content, 'html.parser')
for link in soup.find_all('a', href=True):
print (link['href'])
代码的结果:
?
?
只需要https包含的链接,而不是在图像中标记的矩形框。
转载请注明出处:http://www.cpss-cn.com/article/20230526/2157182.html