Rename Downloaded Files Selenium
I'm using selenium to automatically download files in csv format from this page: https://catalog.data.gov/dataset?tags=crime This is the code I'm using: profile = webdriver.Firefox
Solution 1:
You don't have control over the download file naming through selenium.
What you can do is to use a directory watcher/observer to detect when the file is downloaded and then rename it accordingly. Please see this answer containing more follow-up details.
Post a Comment for "Rename Downloaded Files Selenium"