PythonHeadlessChrome
PythonHeadlessChrome copied to clipboard
Save multiple files
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?