-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
最近好像不能用了 显示系统维护 #499
Comments
是的不知道为什么 |
pc开头的网址没有了,所以显示系统维护 |
应该改什么代码来解决这个问题呢 |
+1,什么问题呢? |
pdlearn目录下面mydriver.py文件中的
原来是我的学习什么的,改成系统维护中。 这个函数是登陆的,其实已经登陆了,只是页面改了,打开的页面标题就变了。 |
明白你的意思但是怎么解决呢 |
|
我试验一下他说这个方法好像还是不行,要不兄弟把修改py脚本发给大家试试哈
Dr.Jiangwei ZHANG
State Key Laboratory of Catalysis & Gold Catalysis Research Center
Dalian Institute of Chemical Physics, Chinese Academy of Sciences (CAS)
Dalian 116023, P.R.China
Phone: 0411-82463009(O), +8618810644775(M)
E-mail:[email protected]
ORCID: http://orcid.org/0000-0002-1221-3033
…------------------ Original ------------------
From: "admin123-admin"<[email protected]>;
Date: Tue, Mar 24, 2020 10:34 AM
To: "Alivon/Panda-Learning"<[email protected]>;
Cc: "jwz-DICP(张江威)"<[email protected]>;"Author"<[email protected]>;
Subject: Re: [Alivon/Panda-Learning] 最近好像不能用了 显示系统维护 (#499)
明白你的意思但是怎么解决呢
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
def login(self): |
原来文件中的函数在哪里打开小白不明白大神说说呗 |
这个是我按照你们说的修改 好像还是系统维护的问题哈
Dr.Jiangwei ZHANG
State Key Laboratory of Catalysis & Gold Catalysis Research Center
Dalian Institute of Chemical Physics, Chinese Academy of Sciences (CAS)
Dalian 116023, P.R.China
Phone: 0411-82463009(O), +8618810644775(M)
E-mail:[email protected]
ORCID: http://orcid.org/0000-0002-1221-3033
…------------------ Original ------------------
From: "admin123-admin"<[email protected]>;
Date: Tue, Mar 24, 2020 10:34 AM
To: "Alivon/Panda-Learning"<[email protected]>;
Cc: "jwz-DICP(张江威)"<[email protected]>;"Author"<[email protected]>;
Subject: Re: [Alivon/Panda-Learning] 最近好像不能用了 显示系统维护 (#499)
目录下面mydriver.py文件中的
函数改成这样
def login(self): print("正在打开二维码登陆界面,请稍后") self.driver.get("https://pc.xuexi.cn/points/login.html") try: remover = WebDriverWait(self.driver, 30, 0.2).until( lambda driver: driver.find_element_by_class_name("redflagbox")) except exceptions.TimeoutException: print("网络缓慢,请重试") else: self.driver.execute_script('arguments[0].remove()', remover) try: remover = WebDriverWait(self.driver, 30, 0.2).until( lambda driver: driver.find_element_by_class_name("header")) except exceptions.TimeoutException: print("当前网络缓慢...") else: self.driver.execute_script('arguments[0].remove()', remover) try: remover = WebDriverWait(self.driver, 30, 0.2).until( lambda driver: driver.find_element_by_class_name("footer")) except exceptions.TimeoutException: print("当前网络缓慢...") else: self.driver.execute_script('arguments[0].remove()', remover) self.driver.execute_script('window.scrollTo(document.body.scrollWidth/2 - 200 , 0)') try: WebDriverWait(self.driver, 270).until(EC.title_is(u"系统维护中")) cookies = self.get_cookies() return cookies except: print("扫描二维码超时")
原来是我的学习什么的,改成系统维护中.
这个函数是登陆的,其实已经登陆了,只是页面改了,打开的页面标题就变了.
明白你的意思但是怎么解决呢
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
能发个全新的脚本吗 |
同样问题 扫码后显示系统维护,请问怎么解决!!! |
楼主:能再发一次吗,已经删掉了 |
再发一次也没用啊,现在二维码直接不显示了。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: