I'm scraping with Selenium + ChromeDriver on Linux (RedHat).
A file similar to the one shown in is created.
I'd like to change the path that this file is created to a specific directory.
Background you want to change
The above files are subject to on-access scanning by virus scanning software (SAV since Sophos Antivirus), and rarely try to scan, but they have already been deleted, resulting in an error.
The SAV specification allows you to exclude paths that contain regular expressions, but once you pass through the tarpa driver, you are judged to be excluded, so if you delete them during the tarpa driver process, you will get an error.
Therefore, we would like to change the output destination of the following files under the excluded directory of the fixed path.
Cache and user data are also printed in directories containing random characters, but can be fixed with the following options:
I solved myself.
By specifying the environment variable TMPDIR, we have confirmed that it is created under it.
This allowed the exclusion in the fixed path.
© 2023 OneMinuteCode. All rights reserved.