This is a multifunction WeChat Robot based on wxpy.
- Ubuntu 18.04/16.04 LTS
- Python 3.x
- pyecharts
- jieba
- OpenCV (version>=3)
- Keras
Using python operation system library os, you can control your computer through WeChat on your phone
cmd on
cmd off
cmd kill
To prevent causing chaos, command terminal only available for the chats that has been activated.
cmd list
After activating, you can control your computer through WeChat.
Based on Turing Robot API (http://www.turingapi.com/), you can turn your WeChat to a chatting robot.
turing on
turing off
turing kill
To prevent causing chaos, Turing Robot only available for the chats that has been activated.
turing list
When someone talk to you or @you in a group, the robot will reply auto automatically.
You can analysis your friend circle by some keywords.
analysis friends
The result will be saved in:
- ./data/user/user_friends_data.md
- ./data/user/avatar
- ./data/user/Graph/China.html
- ./data/user/Graph/Gender.html
- ./data/user/Graph/Signature.html
- ./data/user/Graph/province.html (The province most of your friends come from)
check friend [-friendname] # will show your friend basic information
If you want to analysis the specific group, you can post:
analysis group [-group_name]
If you want to analysis all the groups, you can post:
analysis all group
The result will be saved in:
- ./data/group/[group_name]/group_members_data.md
- ./data/group/[group_name]/avatar
- ./data/group/[group_name]/Graph/Relationship.html
check group [-groupname] # will show your group basic information
my WeChat friends's distribution ( .html had turn to .png):
Thanks to yolov3 (https://pjreddie.com/darknet/yolo/), the robot has integrated object detection function.
yolo on
yolo off
yolo kill
After activation, when you get a picture or a video, the yolo will run.
By the way, thank you Stan Lee.
Using PRNet (ECCV2018 https://github.com/YadiraF/PRNet) to achieve face swapping, Everyone can be Shazam !
hero on
hero off
hero kill
After activation, you just need to post shazam after post a picture first.
The result like this:
Actually you can put your own super hero photo in ./analysis/CV/PRNet/Hero/material/, post the name after posting a photo, you can also get result.
Using requests, urllib and re, obtaining the url of the movie resource from https://www.ygdy8.com/ automatically
You just need to post:
movie [-movie_name]
and you will get all the url.
Supporting sending message, receiving message and saving chats history.
Open file " ../dist-packages/urllib3/fields.py"
Find:
value = email.utils.encode_rfc2231(value, 'utf-8')
value = '%s*=%s' % (name, value)
Edit the second line to:
value = '%s="%s"' % (name, value.encode('utf-8'))
Everyone can through keywords to control your WeChat robot, so be cautious about your privacy.