|
本人想用 Python 实现聊天机器人跟一个好友聊天,代码如下:
from wxpy import *
bot = Bot(c**ole_qr=True,cache_path=True)
my_friend = ensure_one(bot.search(u'***'))
tuling = Tuling(api_key='beed34db67e945a6955a02d6e270cd76')
@bot.register(my_friend)
def reply_my_friend(msg):
tuling.do_reply(msg)
embed()
结果登陆不了微信网页版 ,程序运行后反馈的信息是:
Please scan the QR code to log in.
请教各位大神,如何解决呢?
|
|