Using Chrome Console to download file (rename files and get objects)

I am trying to use Chrome console to download a series of files in a faster way using a for loop. It is a public resource, but its website is old and does not support multiple files download at the same time and there are hundreds of them…

The thing is, when downloading the file, Chrome seems to assign a random name to the file – how can I rename the file that I am going to download in the console?

Also, I used getElementByTagName to get the button inside the page, however I cannot get the .click() or .submit() work. Are there any method to trigger a click on the button?

10 thoughts on “Using Chrome Console to download file (rename files and get objects)”

Leave a Comment