Skip to main content

wxauto

wxauto (适用PC微信3.9.11.17版本)

欢迎指出bug,欢迎pull requests

Windows版本微信客户端自动化,可实现简单的发送、接收微信消息、保存聊天图片

3.9.11.17版本微信安装包下载: 点击下载

文档: 使用文档 | 云服务器wxauto部署指南

环境 版本
OS Windows
微信 Wechat
Python Python (不支持3.7.6和3.8.1)

Star History Chart

获取wxauto

cmd窗口:

pip install wxauto

python窗口:

>>> import wxauto
>>> wxauto.VERSION
'3.9.11.17'
>>> wx = wxauto.WeChat()
初始化成功,获取到已登录窗口:xxx

示例

请先登录PC微信客户端

from wxauto import *


# 获取当前微信客户端
wx = WeChat()


# 获取会话列表
wx.GetSessionList()

# 向某人发送消息(以`文件传输助手`为例)
msg = '你好~'
who = '文件传输助手'
wx.SendMsg(msg, who)  # 向`文件传输助手`发送消息:你好~


# 向某人发送文件(以`文件传输助手`为例,发送三个不同类型文件)
files = [
    'D:/test/wxauto.py',
    'D:/test/pic.png',
    'D:/test/files.rar'
]
who = '文件传输助手'
wx.SendFiles(filepath=files, who=who)  # 向`文件传输助手`发送上述三个文件


# 下载当前聊天窗口的聊天记录及图片
msgs = wx.GetAllMessage(savepic=True)   # 获取聊天记录,及自动下载图片

注意事项

目前还在开发中,测试案例较少,使用过程中可能遇到各种Bug

交流

微信交流群

最后

如果对您有帮助,希望可以帮忙点个Star,如果您正在使用这个项目,可以将右上角的 Unwatch 点为 Watching,以便在我更新或修复某些 Bug 后即使收到反馈,感谢您的支持,非常感谢!

免责声明

代码仅用于对UIAutomation技术的交流学习使用,禁止用于实际生产项目,请勿用于非法用途和商业用途!如因此产生任何法律纠纷,均与作者无关!

Metadata

Release files for weixin-auto 3.9.11.17

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

Source distribution (sdist)

Source distribution for weixin-auto 3.9.11.17
File Size Uploaded Provenance Actions
weixin_auto-3.9.11.17.tar.gz 84.0 kB Without provenance Details for weixin_auto-3.9.11.17.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for weixin-auto 3.9.11.17
File Interpreter ABI Platform Actions
weixin_auto-3.9.11.17-py3-none-any.whl Python 3 none any Details for weixin_auto-3.9.11.17-py3-none-any.whl

Total release size: 169.9 kB

Release files / weixin_auto-3.9.11.17.tar.gz

Download URL weixin_auto-3.9.11.17.tar.gz
Size 84.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a6876b86fde191ffa7eb2335072aef7b6cdfbb13efda75396d7aa8da06efdc99
BLAKE2b-256 checksum
How to use checksums
09c6e26da2b359b4af2f0eb4ea4bad443b46e4a0729097e485fa1ba1f159ca68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.4

Release files / weixin_auto-3.9.11.17-py3-none-any.whl

Download URL weixin_auto-3.9.11.17-py3-none-any.whl
Size 86.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87a8bf4d595e0b0e8c377c114a0826fb776003b3ae24f08a8e1fc99c3797c97c
BLAKE2b-256 checksum
How to use checksums
086670cf5f21f3a86284fc8d37166ab8d2419758c341cf1931ec634032d7f0f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.4

Security for weixin-auto 3.9.11.17

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.9.11.17 This release

2 release files No provenance

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