列表格式显示
广告招商中...... 联系方式!
私信 +好友
https://googlechromelabs.github.io/chrome-for-testing/
c盘搜索:scoped_dir
C:\Users\Administrator\AppData\Local\Temp\chrome_url_fetcher_19412_239410040C:\Users\Administrator\AppData\Local\Temp\chrome_BITS_16176_1439591952C:\Users\Administrator\AppData\Local\Temp\scoped_dir7672_2014177749经过查阅,chrome_url_fetcher和chrome_BITS文件夹下的都在下载某个插件。scoped_dir的则是因为启动webdriver的时候没有指定user data目录,所以在Temp目录下产生了一个临时的配置文件目录。正常来说,当执行完后用driver.quit()应该会退出的,但原先的代码执行时在还没到driver.quit()这一步时就已经失败退出,所以Temp目录下的文件没被删除。
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
# 创建一个目录 dir_name = "C:/temp" import os; if not os.path.exists(dir_name): os.makedirs(dir_name) print(f"目录 '{dir_name}' 创建成功") else: print(f"目录 '{dir_name}' 已存在") option.add_argument("user-data-dir=C:/temp")
driver = webdriver.Chrome(options=options)
本页Html网址:/htmlsoft/619502.html
本页aspx网址:/soft.aspx?id=619502&bianhao=202502181133220168_53435&kind1=&kind2=
最后访问时间:
上一篇:discuz 调试:
下一篇:discuz 登录过程
增加