📅  最后修改于: 2022-03-11 14:53:01.900000             🧑  作者: Mango
import requests
from bs4 import BeautifulSoup
url = 'https://www.geeksforgeeks.org/'
reqs = requests.get(url)
soup = BeautifulSoup(reqs.text, 'html.parser')
urls = []
for link in soup.find_all('a'):
print(link.get('href'))