Git Product home page Git Product logo

weixinclient-python's Introduction

快速开始

前置条件:

安装

> pip install wxchat

使用

启动微信服务端程序

> weixin_server.exe --port1 10086 --port2 10010

编写python代码,接受微信的消息

from wechat import WechatHelper
helper = WechatHelper(127.0.0.1, 10086, 10010)

helper.wait_until_login()

helper.send_text("filehelper", "你好!")

@helper.message("chat")
def receive_message(topic, message):
    print(message)

helper.run_forever()

示例

TODO

  1. 接收消息
  2. 发送消息
  3. 查询好友
  4. 添加好友
  5. 获取群成员
  6. 获取通讯录
  7. 发送卡片
  8. 发送文章
  9. 自动收款
  10. 自动入群
  11. 自动同意好友请求
  12. 发送小程序

声明

本项目仅为学习交流之用,如有问题请添加微信haiyiqiang

weixinclient-python's People

Contributors

q757571446 avatar

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.