All Projects → aiden0z → wx_robot_example

aiden0z / wx_robot_example

Licence: other
实验楼课程 《利用微信API将你的微信变为聊天机器人》 直播视频相关代码

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to wx robot example

raspi-chatrobot
基于树莓派的微信机器人
Stars: ✭ 33 (-5.71%)
Mutual labels:  robot, itchat
Itchat
A complete and graceful API for Wechat. 微信个人号接口、微信机器人及命令行微信,三十行即可自定义个人号机器人。
Stars: ✭ 21,935 (+62571.43%)
Mutual labels:  robot, itchat
community-projects
Webots projects (PROTO files, controllers, simulation worlds, etc.) contributed by the community.
Stars: ✭ 20 (-42.86%)
Mutual labels:  robot
willsautoclick
Fastest Java autoclicker in the entire west
Stars: ✭ 12 (-65.71%)
Mutual labels:  robot
rgbd person tracking
R-GBD Person Tracking is a ROS framework for detecting and tracking people from a mobile robot.
Stars: ✭ 46 (+31.43%)
Mutual labels:  robot
Capricorn
提供强大的NLP能力, low-code实现chatbot
Stars: ✭ 14 (-60%)
Mutual labels:  robot
URDF-Importer
URDF importer
Stars: ✭ 135 (+285.71%)
Mutual labels:  robot
RWHEC-Tabb-AhmadYousef
This code provides methods for robot-world, hand-eye(s) calibration, updated in June 2018..
Stars: ✭ 32 (-8.57%)
Mutual labels:  robot
doubanrobot
A simple robot for Douban.com
Stars: ✭ 34 (-2.86%)
Mutual labels:  robot
idyntree
Multibody Dynamics Library designed for Free Floating Robots
Stars: ✭ 109 (+211.43%)
Mutual labels:  robot
joinhider bot
Telegram bot to delete user joined messages
Stars: ✭ 20 (-42.86%)
Mutual labels:  robot
mqr
茉莉QQ机器人(简称MQR),采用mirai的Android协议实现的QQ机器人服务,通过web控制机器人的启停和配置。
Stars: ✭ 71 (+102.86%)
Mutual labels:  robot
webots ros
Webots ROS package
Stars: ✭ 73 (+108.57%)
Mutual labels:  robot
pikachuwechat
PikachuWeChat: Play WeChat with itchat-uos.
Stars: ✭ 102 (+191.43%)
Mutual labels:  itchat
drivecommand
A communication library which connects a robot (EV3, NXT, etc.) and a device (Android, PC, etc.)
Stars: ✭ 13 (-62.86%)
Mutual labels:  robot
Install-VScode-On-TX2
How to install VScode on Nvidia TX2
Stars: ✭ 24 (-31.43%)
Mutual labels:  robot
ceres robot
ceres robot ros driver and tools
Stars: ✭ 43 (+22.86%)
Mutual labels:  robot
RaspberryPi-4WD-Car
Yahboom 4WD smart robot with AI vision features for Raspberry Pi 4B
Stars: ✭ 31 (-11.43%)
Mutual labels:  robot
qqRobot.js
😊 QQ聊天机器人,使用JavaScript实现, 可以在安卓设备上运行。
Stars: ✭ 17 (-51.43%)
Mutual labels:  robot
hexapod
Golang program for my junky hexapod
Stars: ✭ 59 (+68.57%)
Mutual labels:  robot

介绍

该项目为实验楼课程 《利用微信API将你的微信变为聊天机器人》 直播视频的相关代码。在直播中,我们基于 itchat 软件包实现了一个简单的微信机器人,接入了 图灵机器人, 小豆机器人, 以及简单的系统监控功能。

课程地址 https://www.shiyanlou.com/courses/684

直播视频回放地址 http://www.bilibili.com/video/av12860627/



效果图

原理

如果我们能模拟微信登录,能接收到微信消息,就可以针对这些消息进行分析处理并作出相应的响应,这就是微信聊天机器人的基本原理。

简单来说,我可以通过 itchat 模拟登录微信账户 A,当账户登录成功后,使用其他的微信账户给 A 账户发送消息,就可以看到聊天机器人的效果了。

该项目实现的微信机器人不仅接入了小豆机器人,还实现了简单的系统监控功能,系统性能数据采集基于包 psutil 实现。

运行项目

安装 Python 执行环境后,可以通过 pip 命令安装 virtualenv 软件包,然后基于该包搭建执行环节。通过以下步骤启动本项目:

# 创建工作目录
$ mkdir ~/project
$ cd ~/project
# 克隆本项目
$ git clone https://github.com/aiden0z/wx_robot_example.git wx_robot
$ cd wx_robot
# 安装 virutalenv 软件包,如果已经安装,可以跳过该操作
$ sudo pip install virtualenv
# 创建 virtualenv 环境
$ virtualenv env
# 激活 virtualenv 环境
$ source env/bin/activate
# 安装项目依赖包
$ pip install -r requirements.txt
# 启动机器人
$ python robot.py

以上步骤中,以 # 开始的行为注释, $ 开头的行为真正需要执行的命令。其中 requirements.txt 包含了本项目所有的依赖包。项目启动成功后,可以看到类似以下的效果:

 $ python wx_robot.py
Getting uuid of QR code.
Downloading QR code.
Please scan the QR code to log in.

接着扫描二维码登录,并使用微信好友发送消息,就可以看到效果了。

反馈

如果你有任何问题可以到 实验楼讨论区 进行提问,或者在本项目中开 issue。

更多更精彩的课程,可以前往 实验楼 学习。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].