WenhaoDaiCN / Panda-Learning

已终止该项目
GNU Lesser General Public License v3.0
1.94k stars 644 forks source link

mac启动以后 用不了 自动停止了 #473

Open gwd0715 opened 5 years ago

gwd0715 commented 5 years ago

开启: 文章学习 开启: 视频学习 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)

shellalumni commented 5 years ago

一模一样的问题

AnnieXu0608 commented 4 years ago

现在还可以用么? 验证码登录

Hoontme commented 4 years ago

请问有什么办法解决吗?

Hoontme commented 4 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