我正在尝试从以下url下载所有csv文件:
https://emi.ea.govt.nz/Wholesale/Datasets/FinalPricing/EnergyPrices
,但不幸的是,我未能如期成功。以下是我的尝试:
soup = BeautifulSoup(page.content, "html.parser")
market_dataset = soup.findAll("table",{"class":"table table-striped table-condensed table-clean"})
for a in market_dataset.find_all('a', href=True):
print("Found the URL:", a['href'])
谁能帮帮我吗。如何获取csv文件的所有URL。