Skip to content
forked from cluic/wxauto

Windows版本微信客户端(非网页版)自动化,可实现简单的发送、接收微信消息,简单微信机器人

License

Notifications You must be signed in to change notification settings

winteller/wxautorepo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wxautorepo

基于 wxauto 的微信消息群发机器人。

使用场景

每天早上9点发送一个包含海报和文案的消息到n个微信群。

逻辑设计

  1. 使用稿定设计制作海报,保存为jpg文件
  2. 使用kimi制作分享文案,保存为txt文件
  3. 保存以上素材到本地文件夹,并按照组别命名
  4. 运行机器人批量发送给不同的微信群

todo

  • 含1张海报和1条文案的消息组,批量发送给不同群
  • 多张图和多条文案序列执行
  • 节假日无人值守定时执行

代码实现

(1) 安装

# 拉取代码
git clone https://github.com/winteller/wxautorepo.git
cd wxautorepo
# 切换Python源为清华镜像
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# 安装核心依赖 (必选)
pip install -r requirements.txt

(2) 设置

微信发送消息设置为 Enter

发送消息

更新发送对象和内容

# 收信人
who = [
    '未来可期',
    '文件传输助手'
]  

# 消息组
# 每个消息组中包含一个海报JPG文件,和一个消息TXT文件。
# 更改代码中的文件位置和名称与所发送内容匹配即可。
file_msg_pairs = [
    (
        'D:/test/file1.jpg',
        'D:/test/message1.txt',
    ),
    (
        'D:/test/file2.jpg',
        'D:/test/message2.txt',
    ),
    # 可以根据需要自行添加
]

(3) 运行

python demo.py

About

Windows版本微信客户端(非网页版)自动化,可实现简单的发送、接收微信消息,简单微信机器人

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 100.0%