Giter Club home page Giter Club logo

pywechat's Introduction

PyWeChat

PC微信Hook逆向程序:Hook到微信消息,然后与Python程序进行交互。

支持的环境配置

  • Windows系统
  • Python 3.5以上

支持的微信版本

核心文件WeChatSpy.dll 的开发源代码(C++)地址

返回数据样例

  • {'pid': , 'self': , 'type': 1, 'msg_type': , 'chatroom_ID': '', 'wx_ID': '', 'content': ''} > 微信消息
    • self类型说明:
      • 1 消息由当前登录账号发出
      • 0 消息由他人发出
    • msg_type类型说明:
      • 1 文本消息
      • 3 图片消息
      • 37 好友申请消息
      • ...
  • {'pid': , 'type': 2, 'wx_ID': '', 'nickname': '', 'account': '', 'phone': '', 'province': '', 'city': '', 'device': '', 'avatar': '' > 用户个人信息

功能列表

  • send_text(wxid, content, at_wxid="") > 发送文本,暂不支持@某个人
  • query_personal_info() > 查询登录账号的个人信息

使用教程

  1. git clone工程到本地之后,确保已经安装2.8.0.133版本的微信到电脑上,并且已经登录电脑微信。
  2. cd到项目工程目录下,运行里面的使用示例example.py:
python example.py
  1. 用另外一个微信给登录的电脑微信发送好友消息或者群消息,运行结果如下:
  • 显示接收到的微信消息:
  • 好友消息自动回复:
  • 微信群消息自动回复:

作者寄语

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.