用python的itchat库做微信智能回复
来源:互联网 发布:计算机算法设计难么 编辑:程序博客网 时间:2024/05/28 17:08
版本:py3
调用图灵智能的智能服务;
#coding=utf8import requestsimport itchatKEY = 'd013d2a0c5564918b1270855582d5d4f'def get_response(msg): apiUrl = 'http://www.tuling123.com/openapi/api' data = { 'key' : KEY, 'info' : msg, 'userid' : 'wechat-robot', } try: r = requests.post(apiUrl, data=data).json() return r.get('text') except: return@itchat.msg_register(itchat.content.TEXT)def tuling_reply(msg): defaultReply = 'I received: ' + msg['Text'] reply = get_response(msg['Text']) return reply or defaultReplyitchat.auto_login(hotReload=True)itchat.run()
阅读全文
0 0
- 用python的itchat库做微信智能回复
- python itchat实现微信自动回复
- python中利用itchat实现自动回复
- python的itchat模块
- 关于利用itchat模块编写的微信自动回复
- 用itchat遇到的问题
- itchat微信自动回复消息
- itchat 群聊转发,自动回复
- Python微信库: itchat
- python库之itchat
- python 微信 itchat
- python微信库:itchat
- 安装python itchat 模块 用python发微信消息
- python windows环境下 pip install itchat 失败的原因
- 用python中的itchat框架 筛选出 指定某个微信群中 是否还有你自己的好友 并列出来
- python微信模块 itchat
- itchat
- itchat的一些筆記
- Python标准库-turtle
- 洛谷3702,递推+矩阵乘法优化
- WebStorm基本使用
- 第三方邮件客户端收取163邮件问题(收邮件NO Select Unsafe Login. Please contact kefu解决办法)
- Windows17
- 用python的itchat库做微信智能回复
- LeetCode 58. Length of Last Word
- Unity在安卓上对于VR的支持
- springboot遇到的问题汇总
- 最长公共子序列
- tomcat内存溢出解决,java.lang.OutOfMemoryError: PermGen space
- 键盘字符ASC码
- OkHttp, Retrofit, Volley,android-async-http怎么选择
- matlab读取文件夹里所有文件的文件名