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

滑动验证码识别失败 #480

Open
winters1214 opened this issue Jan 23, 2024 · 3 comments
Open

滑动验证码识别失败 #480

winters1214 opened this issue Jan 23, 2024 · 3 comments

Comments

@winters1214
Copy link

这行代码: browser = await launch(headless=True, autoClose=True, handleSIGINT=False, handleSIGTERM=False,
handleSIGHUP=False, args=['--disable-infobars', '--no-sandbox'])

报错:发生异常: module 'websockets' has no attribute 'client'
这个问题怎么解决?有大神帮忙看下吗,似乎依赖库是版本冲突

@Junyusky
Copy link

看起来你这好像是整成功了?你是怎么整的,

  1. python版本号多少?
  2. 是直接git下来就能启动吗?还是有啥其他差别

@winters1214
Copy link
Author

看起来你这好像是整成功了?你是怎么整的,

  1. python版本号多少?
  2. 是直接git下来就能启动吗?还是有啥其他差别

Python 3.9.6
代码下下来需要解决依赖冲突的问题,根据报错提示解决就行
还有一个:# API_GET_BROWSER_DEVICE_ID = 'https://12306-rail-id-v2.pjialin.com/'
API_GET_BROWSER_DEVICE_ID = BASE_URL_OF_12306 + '/otn/HttpZF/logdevice'
注释掉上面那行,改成下面的

使用二维码登录,不要使用密码

其他好像没什么了,自动下单成功了,明天试试抢票

@Junyusky
Copy link

image
请问,这种依赖怎么处理啊?

另外,代码我在pycharm里能运行,但是在python命令行就有错误,知道怎么回事不?
image

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

2 participants