简体   繁体   中英

How do I go about automatically grabbing a csv file from this website?

There is this website:

https://www.aemo.com.au/Electricity/National-Electricity-Market-NEM/Data-dashboard#price-demand

that has some information I want to utilise for a project.

In the top right there is a little download button that allows users to download a nice csv file that I can open in my code.

My question is how I would go about automatically downloading this data from my python program.

I have tried to inspect the download button element and under "Event Listeners" in Chrome there is a .js file that executes when the download button is pressed:

https://www.aemo.com.au/aemo/apps/visualisations/dist/aurelia-24ac75bb54.js

I'm just not too sure how to link it all together so I can automatically grab the csv file every 5-10 minutes.

I was hoping that someone could help me!

Thanks

just use BeautifulSoup and go through the documentation.

or else selenium webdriver would definitely help you out.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM