Skip to main content

pywxbot

pywxbot 是一个微信机器人框架,通过模拟鼠标键盘操作微信Window客户端实现自动回复等功能。

特性

  • 消息监听
  • 消息发送
  • 好友搜索
  • 好友自动通过
  • ......

Quick Start

安装

可以通过本命令安装pywxbot:

pip install pywxbot -i https://pypi.douban.com/simple/

使用实例

1.启动Windows微信客户端

2.登录微信

3.把聊天对象搜索到聊天列表中,确保聊天对象在左侧聊天列表中处于可见状态

4.运行下面的代码

import pywxbot

app = pywxbot.WxBot()

# 监听消息
@app.watch('文件传输助手')
def auto_reply(msg):
    return f'recv : {msg.txt}'

app.run()

Release files for pywxbot 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pywxbot 0.0.3
File Size Uploaded
pywxbot-0.0.3.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pywxbot 0.0.3
File Interpreter ABI Platform
pywxbot-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 8.1 kB

Release files / pywxbot-0.0.3.tar.gz

Download URL pywxbot-0.0.3.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
86727934f7a466c77641967f6913f88e3b75cd4d3c77eb9f5f90e560d4c3a388
BLAKE2b-256 checksum
How to use checksums
b56463f418b6ab37045852f575e5e8dcacc7b6dd2f504dca82e81d81e28e91f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Release files / pywxbot-0.0.3-py3-none-any.whl

Download URL pywxbot-0.0.3-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea29d20d327f35692a6dfd2a300d15e476d71e3a3bd4011c1aa2e721270476af
BLAKE2b-256 checksum
How to use checksums
876c73396e3b1ca54a9ddeee1f172502e32a77d37e5152249da69706eb0db160
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page