可以自己动手编写小程序来实现
以下以Python为例:
Python中有 itchat 模块 实现了对网页版微信的封装,很好用,API可以到下面网站查看:
http://itchat.readthedocs.io/zh/lat
可以自己动手编写小程序来实现
以下以Python为例:
Python中有 itchat 模块 实现了对网页版微信的封装,很好用,API可以到下面网站查看:
http://itchat.readthedocs.io/zh/latest/api/
可以实现登陆后监控消息,即当收到消息时查看发送人,返送内容并回复
也可以定时发送消息等
基本操作如下:
登陆并运行
itchat.auto_login()itchat.run()
发送文本消息
itchat.send_msg('hello', toUserName=\"\")
发送文件
itchat.send_file('a.mp4', toUserName='')
发送图片
itchat.send_image('a.jpg', toUserName='')
发送视频
itchat.send_video('a.mp4', toUserName='')
注册接收文本消息是调用的方法
@itchat.msg_register(itchat.content.Text)def sendText(msg): print(msg)
同时也有其他的事件,事件定义在 itchat.content 中
TEXT: 文本
MAP: 地图
CARD: 名片
SHARING: 分享
PICTURE: 图片/表情
RECORDING: 语音
ATTACHMENT: 附件
VIDEO: 小视频
FRIENDS: 好友邀请
SYSTEM: 系统消息
NOTE: 通知
具体使用方法可以到网站查看
http://itchat.readthedocs.io/zh/latest/api/
当然,如果有服务器的话可以运行在服务器上