Filename too long when using download_file
#3642
-
Hello! I'm very excited to discover this package after using basic Selenium for quite some time and I immediately migrated many of my projects over--really appreciate your effort creating and maintaining this package! Recently, I'm working on a script to automatically download images after collect their URLs. I'm using the following code block as recommended in other discussions
However, I bumped into a filename length issue during download (e.g. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You have to use self.save_file_as(file_url, new_file_name, destination_folder=None) Some other helpful ideas may be found here: s3tools/s3cmd#202 (comment) |
Beta Was this translation helpful? Give feedback.
You have to use
save_file_as()
so that you can rename the file to a legal size for your file system:Some other helpful ideas may be found here: s3tools/s3cmd#202 (comment)