Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.4k views
in Technique[技术] by (71.8m points)

asp.net - automate downloading aspx file from website using python

I am trying to download aspx from a website using python.

url: https://ws2.osfi-bsif.gc.ca/WebApps/Temp/0cdc8784-76a1-4cb2-9354-e549c34bc591FinancialData.aspx

Here my script

from urllib.request import urlretrieve

import pandas as pd

url = 'https://ws2.osfi-bsif.gc.ca/WebApps/Temp/0cdc8784-76a1-4cb2-9354-e549c34bc591FinancialData.aspx'

urlretrieve (url, 'data.csv')

df = pd.read_csv('data.csv', sep=';')

print(df.head())

it shows error.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...