Skip to content
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

Open
zjwdicp opened this issue Mar 24, 2020 · 16 comments
Open

最近好像不能用了 显示系统维护 #499

zjwdicp opened this issue Mar 24, 2020 · 16 comments

Comments

@zjwdicp
Copy link

zjwdicp commented Mar 24, 2020

No description provided.

@admin123-admin
Copy link

是的不知道为什么

@gundamgx
Copy link

pc开头的网址没有了,所以显示系统维护

@LIUmingli1997
Copy link

应该改什么代码来解决这个问题呢

@shingoxy
Copy link

+1,什么问题呢?

@adslhuang
Copy link

pdlearn目录下面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("扫描二维码超时")

原来是我的学习什么的,改成系统维护中。

这个函数是登陆的,其实已经登陆了,只是页面改了,打开的页面标题就变了。

@admin123-admin
Copy link

明白你的意思但是怎么解决呢

@admin123-admin
Copy link

目录下面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("扫描二维码超时")

原来是我的学习什么的,改成系统维护中.

这个函数是登陆的,其实已经登陆了,只是页面改了,打开的页面标题就变了.
明白你的意思但是怎么解决呢

@zjwdicp
Copy link
Author

zjwdicp commented Mar 24, 2020 via email

@adslhuang
Copy link

def login(self):
这是登陆函数,用我贴出来的内容代替原来文件中的函数。

@admin123-admin
Copy link

原来文件中的函数在哪里打开小白不明白大神说说呗

@zjwdicp
Copy link
Author

zjwdicp commented Mar 24, 2020 via email

@admin123-admin
Copy link

能发个全新的脚本吗

@2449851453
Copy link

同样问题 扫码后显示系统维护,请问怎么解决!!!

@2449851453
Copy link

2449851453 commented Mar 24, 2020

同样问题扫码后显示系统维护,请问怎么解决!!!

已在另一个帖子里得到解决了,下载pandalearning.zip解压替换原文件即可正常扫码登录。
链接:
pan.baidu.com/s/1cYEaorlMj_GhV0ti8eLCWQ

提取代码:msvv复制这段内容后打开百度网盘手机应用程序,操作更方便哦

附上图片:
-1bf85a3cca86fd86

@mobaoz
Copy link

mobaoz commented Mar 27, 2020

楼主:能再发一次吗,已经删掉了

@jinchengtuhao
Copy link

再发一次也没用啊,现在二维码直接不显示了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants