Comments (16)
是的不知道为什么
from panda-learning.
pc开头的网址没有了,所以显示系统维护
from panda-learning.
应该改什么代码来解决这个问题呢
from panda-learning.
+1,什么问题呢?
from panda-learning.
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("扫描二维码超时")
原来是我的学习什么的,改成系统维护中。
这个函数是登陆的,其实已经登陆了,只是页面改了,打开的页面标题就变了。
from panda-learning.
明白你的意思但是怎么解决呢
from panda-learning.
目录下面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("扫描二维码超时")
原来是我的学习什么的,改成系统维护中.
这个函数是登陆的,其实已经登陆了,只是页面改了,打开的页面标题就变了.
明白你的意思但是怎么解决呢
from panda-learning.
from panda-learning.
def login(self):
这是登陆函数,用我贴出来的内容代替原来文件中的函数。
from panda-learning.
原来文件中的函数在哪里打开小白不明白大神说说呗
from panda-learning.
from panda-learning.
能发个全新的脚本吗
from panda-learning.
同样问题 扫码后显示系统维护,请问怎么解决!!!
from panda-learning.
同样问题扫码后显示系统维护,请问怎么解决!!!
已在另一个帖子里得到解决了,下载pandalearning.zip解压替换原文件即可正常扫码登录。
链接:
pan.baidu.com/s/1cYEaorlMj_GhV0ti8eLCWQ
提取代码:msvv复制这段内容后打开百度网盘手机应用程序,操作更方便哦
from panda-learning.
楼主:能再发一次吗,已经删掉了
from panda-learning.
再发一次也没用啊,现在二维码直接不显示了。
from panda-learning.
Related Issues (20)
- 全自动59分 电报群:https://t.me/xxqgfxq
- 保存账号密码登录失败,每次登录都得扫码
- 全自动59分 电报群:https://t.me/joinchat/MYWaBlNhJau7SjLC7zPKHg
- 邀请59积分电报组织群:https://t.me/joinchat/MYWaBlNhJatwvVXuTRCgnA
- 。。。
- pdlearn目录下面mydriver.py文件中的 HOT 42
- 不能文章阅读了 HOT 2
- 请大佬帮忙看看这个,学习强国二维码不出现 HOT 12
- 学习研究代码 请勿传播 HOT 14
- 更新维护【欢迎大神更新】 HOT 66
- > python生成exe文件 HOT 8
- 登录二维码不显示 HOT 4
- 欢迎各位大神提交源代码和二进制文件更新到这里https://github.com/PandaLearning/Panda-Learning ,持续更新中……
- 便利峰0撸500ML可口可乐 支付宝或微信扫码进入领取,领取了去门店出示二维码兑换就行了,亲测0撸稳! 有能撸的城市:北京/天津/南京/廊坊/上海/无锡/苏州/杭州
- 今天被封 HOT 8
- windows pc端扫码后不会往下走啊,有人解决一下嘛
- windows下如何使用用户名和密码自动登录,不用扫二维码 HOT 2
- 6个视频学习不能完全学完
- anything wrong with the code unwritten
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from panda-learning.