# Hello-Mr-Crab/pywechat

仍然可用的微信RPA！支持4.0系列微信pywechat是一个基于pywinauto实现的windows桌面微信自动化操作工具，基本实现了PC微信内置的各项操作。

Repository: https://github.com/Hello-Mr-Crab/pywechat
Canonical: https://ross.abutalabs.com/products/pywechat
Language: Python
License: NOASSERTION
License Family: other
Topics: python, pywechat, pywinauto, wechat
Last push: 2026-08-20T14:04:29+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 34, longevity 47
- inputs: {"age_days": 664, "days_push": 13, "days_rel": 231, "gap_med": null, "n_releases_24m": 1}
- flags: prerelease_only, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1869, forks 502 (observed 2026-08-28T04:05:46.512575+00:00)

## What it is
A Python library for automating the Windows desktop WeChat client through pywinauto-based UI automation (no reverse-engineering hooks), covering message and file sending, auto-reply, calls, contacts and chat-record retrieval, Moments posting, and message monitoring. Its actively maintained pyweixin module targets WeChat 4.1+ and can be packaged as a Skill so AI agents can drive WeChat.

## Use cases
- automate sending WeChat messages from a Windows PC with python
- auto-reply to incoming WeChat messages
- export or read WeChat chat history programmatically
- monitor new messages in a WeChat chat window
- post to or scrape WeChat Moments via script
- retrieve WeChat contact lists and friend details
- send files or voice messages to WeChat contacts automatically
- give an AI agent a skill to operate desktop WeChat

## When to choose
- You need to automate the PC WeChat client on Windows 7/10/11 using only visible-UI automation, without hooking or reversing the app
- You want Python 3.10+ typed APIs for messaging, files, auto-reply, contacts, Moments, and calls against WeChat 3.9 or 4.1+
- You want to expose WeChat operations as a Skill for agent platforms
- You plan to build custom automation on top of its pywinauto utility functions

## When to avoid
- You run macOS or Linux, or need headless/server-side operation - it requires a visible Windows desktop UI session
- You need a sanctioned, ToS-compliant official API - this is unofficial UI automation and the readme warns against uses that violate WeChat's terms
- You target WeChat versions outside the supported 3.9.12.x / 4.1.6+ ranges or non-Chinese/English/Traditional-Chinese UI languages

## Facets
- artifact type: library
- maturity: active
- function: workflow-automation, gui, sdk, chatbot
- domain: messaging-platforms, developer-tools, windows
- platform: windows, python
- tags: rpa, wechat, ui-automation, pywinauto, desktop-automation, auto-reply, chat-export, unofficial-api, skill-for-agents, automation, desktop

## Member repositories
- Hello-Mr-Crab/pywechat (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:46.512575+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:15:11.144022+00:00, confidence not recorded.
  - readme: https://github.com/Hello-Mr-Crab/pywechat (fetched 2026-08-28T04:05:46.512575+00:00, sha 9a5328a22261)
- Data as of 2026-08-30T08:39:29.467469+00:00.
