D:\资料\python\WeChat>python main.py
Getting uuid of QR code.
Downloading QR code.
Please scan the QR code to log in.
Please press confirm on your phone.
Traceback (most recent call last):
File "main.py", line 17, in
itchat.auto_login()
File "D:\software\Anaconda3\lib\site-packages\itchat\components\register.py", line 36, in auto_login
loginCallback=loginCallback, exitCallback=exitCallback)
File "D:\software\Anaconda3\lib\site-packages\itchat\components\login.py", line 53, in login
status = self.check_login()
File "D:\software\Anaconda3\lib\site-packages\itchat\components\login.py", line 137, in check_login
if process_login_info(self, r.text):
File "D:\software\Anaconda3\lib\site-packages\itchat\components\login.py", line 172, in process_login_info
for node in xml.dom.minidom.parseString(r.text).documentElement.childNodes:
File "D:\software\Anaconda3\lib\xml\dom\minidom.py", line 1968, in parseString
return expatbuilder.parseString(string)
File "D:\software\Anaconda3\lib\xml\dom\expatbuilder.py", line 925, in parseString
return builder.parseString(string)
File "D:\software\Anaconda3\lib\xml\dom\expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
xml.parsers.expat.ExpatError: mismatched tag: line 63, column 4

python 用itchat.auto_login()出现如下错误
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
5条回答 默认 最新
- import bugs 2022-01-24 11:23关注
首先你得确认你的微信能不能登录网页版,因为现在很多微信都不能使用itchat模板了,
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 3无用