python 用itchat.auto_login()出现如下错误

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

首先你得确认你的微信能不能登录网页版,因为现在很多微信都不能使用itchat模板了,

python 3.7往后关于网页编码转换模块使用上会有区别。 itchat适用老版python, 新python需要进源码手动改网页编码方式源码

您好,我是有问必答小助手,您的问题已经有小伙伴帮您解答,感谢您对有问必答的支持与关注!
PS:问答VIP年卡 【限时加赠:IT技术图书免费领】,了解详情>>> https://vip.csdn.net/askvip?utm_source=1146287632

最近我也遇到itchat报错的情况,追问下最后如何解决的?

现在已经不支持了...