Open gwd0715 opened 5 years ago
一模一样的问题
现在还可以用么? 验证码登录
请问有什么办法解决吗?
我已经解决了 运行的方式:mac os14源码运行; 找到source packages文件夹 下的 pdlearn 文件夹 中的pycache下的mydriver.py,将函数get_cookies()整个替换为 def get_cookies(self): cookies = self.driver.get_cookies() for cookie in cookies: if 'expiry' in cookie: del cookie['expiry'] return cookies
开启: 文章学习 开启: 视频学习 Exception in thread 视频学习: Traceback (most recent call last): File "threading.py", line 916, in _bootstrap_inner File "pdlearn/threads.py", line 23, in run File "pandalearning.py", line 118, in video File "pdlearn/mydriver.py", line 116, in set_cookies File "selenium/webdriver/remote/webdriver.py", line 894, in add_cookie File "selenium/webdriver/remote/webdriver.py", line 321, in execute File "selenium/webdriver/remote/errorhandler.py", line 242, in check_response selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: invalid 'expiry' (Session info: headless chrome=76.0.3809.100)
Exception in thread 文章学习: Traceback (most recent call last): File "threading.py", line 916, in _bootstrap_inner File "pdlearn/threads.py", line 23, in run File "pandalearning.py", line 59, in article File "pdlearn/mydriver.py", line 116, in set_cookies File "selenium/webdriver/remote/webdriver.py", line 894, in add_cookie File "selenium/webdriver/remote/webdriver.py", line 321, in execute File "selenium/webdriver/remote/errorhandler.py", line 242, in check_response selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: invalid 'expiry' (Session info: headless chrome=76.0.3809.100)