I try to scrape a ajax/js based website for a .csv download.
If I visit the site in a browser, I need to click a button that calls a js function "downloadChartCSV()". This function generates and downloads a .csv file. That the file I'm after.
How can I automate this?
I have tried:
- requests-html, which can login and render the page, but I miss an option to call that onClick event. There seems to be an open issue about exactly this: Github Issue
- Selenium which probably works, but I don't want a full browser that is flashing up.