longxiaofei/spider-BaiduIndex

登录获取dbuss的时候返回channel_v中发现可能没有指定内容,从而报错,建议增加循环获取

Opened this issue · 1 comments

实测登录功能,发现在请求bduss(https://passport.baidu.com/channel/unicast)的时候,第一次扫码返回内容不符合要求,导致代码错误

可能获取内容:
image
需要获取的成功内容:
image

建议在qdata.baidu_login.qr_login.py文件的get_bduss函数中增加判断是否获取到想要的内容再返回

最近有些忙,有空时会补充,感谢建议。