selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: user data directory

chrome貌似不能同时开启两个。所以,将之前开的chrome关闭再运行程序即可。
有时单单关闭浏览器还不行,还得打开任务管理器将对应的进程关闭才行。

你可能感兴趣的:(学习笔记,记录,selenum,python爬虫)