PythonHeadlessChrome icon indicating copy to clipboard operation
PythonHeadlessChrome copied to clipboard

Save multiple files

Open mattmillen888 opened this issue 6 years ago • 0 comments

I need to download multiple files. This solution works perfectly. The issue I have is that each downloaded file has the same file name so the first one writes over the second one etc... If i dont do it in headless it just appends a number at the end which i can rename.

So for example I have 2 files:

download.pdf download.pdf

in non headless it would download these as download.pdf, download.pdf (1) etc...

but in headless the second file writes over the first one.

any ideas ho i could get around this?

mattmillen888 avatar Sep 02 '19 21:09 mattmillen888