python的第三方模块使用
本帖最后由 akai735 于 2022-1-14 20:21 编辑import itchat
itchat.auto_login()
itchat.send_msg("hello",'filehelper')
,>>>>>>>
Getting uuid of QR code.
Downloading QR code.
Please scan the QR code to log in.
Please press confirm on your phone.
Loading the contact, this may take a little while.
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\微信.py", line 2, in <module>
itchat.auto_login()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\site-packages\itchat\components\register.py", line 34, in auto_login
self.login(enableCmdQR=enableCmdQR, picDir=picDir, qrCallback=qrCallback,
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\site-packages\itchat\components\login.py", line 66, in login
self.show_mobile_login()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\site-packages\itchat\components\login.py", line 212, in show_mobile_login
self.loginInfo['url'], self.loginInfo['pass_ticket'])
KeyError: 'pass_ticket'
怎么回事 可能itchat失效了,或者你用itchat多了被腾讯禁止登录网页版了。
页:
[1]