问题描述
现在iTunes-Connect设置双因素认证,不易爬取。所以我必须手动登录,信任设备并将密码保存在 Chrome 上。使用 tampermonkey 脚本来获取 cookie。我为 iTunes-Connect 创建了一个名为 itc
的专用配置文件。
这里,我想用selenium打开itc
个人资料,然后不需要输入账号邮箱和密码,直接点击自动登录。下面是我的代码片段,它可以打开目标 Chrome 配置文件,但一段时间后,遇到错误。如何解决?
从 chrome://version/
,Profile Path,我看到 itc
profile = Profile 49
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument("--user-data-dir=/Users/bill.li/Library/Application
Support/Google/Chrome")
options.add_argument("--profile-directory=Profile 49")
错误:
raise exception_class(message,screen,stacktrace)
selenium.common.exceptions.WebDriverException: Message: unkNown error: Chrome Failed
to start: exited abnormally
(Driver info: chromedriver=2.37.544337
(8c0344a12e552148c185f7d5117db1f28d6c9e85),platform=Mac OS X 10.14.2 x86_64)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)