Workflow:

Website:

doesn't have an API
requires login
clicking on a button to download a file

Is a Javascript button




save file to a download location

Question:

Is there a way to do this through python?
I suggest you to use Selenium to mimic the browser environment.

Try to login by giving your credentials using selenium.
find the button tag and use the html-tag-id to click on it.
Try to find the download location of the file / try to download it directly using the button
python - how can I use web browser click and download a file