A command line tool to automatically preview/publish articles on the WeChat public account (https://mp.weixin.qq.com).
Installation: npm install wechat-mp-automation -g
Open the command line and execute:
wechat-mp-automation -C YOUR_CONFIG_JSON_FILE_PATH
wechat-mp-automation -t [标题] -a [作者] -u [账号] -p [密码]
wechat-mp-automation -t [标题] -a [作者] -u [账号] -p [密码] -o
Scan code during the process:
--preview
), you can preview the article without scanning the QR code.This tool does not save account numbers and passwords in any form! ! !
If puppeteer installation fails, please refer to here
$ wechat-mp-automation -h
Usage: wechat-mp-automation [options]
Options:
-V, --version output the version number
-C, --configPath [xxx] 配置文件的本地路径(支持所有自定义参数)
-t, --title [xxx] 文章标题
-a, --author [xxx] 文章作者
-c, --content [xxx] 文章内容[可选],默认从粘贴板复制
-u, --username [xxx] 公众号账号
-p, --password [xxx] 公众号密码
-o, --original 声明原创[可选]
--preview 预览而不发布[可选]
--preview_username [xxx~yyy] 预览名单[可选],以~间隔多个微信号(自行保证微信号已关注公众号)
--skip_typing 跳过文章标题、作者、文章的填写和封面图片选择(声明原创除外)[可选]
--last_edit 选中最近编辑的文章[可选],请自行确保当前有“最近编辑”的文章
-h, --help output usage information
config.json demo:
{
"title" : " test " ,
"author" : "小铁匠Linus " ,
"username" : " YOUR_USERNAME " ,
"password" : " YOUR_PASSWORD " ,
"original" : " true "
}
1. Adapt to the new version of group sending interface
2. Optimize the interception and display of QR codes
3. Optimize parameter reading
1. Fixed the issue where the selection of the cover image fails when clicking on it.
1. Support the new version of the official account backend
1. Support previewing articles without publishing them
2. When selecting preview, support the specified preview WeChat ID list (make sure that the WeChat ID has followed the official account)
3. Supports skipping filling in content, recommended for secondary preview or publishing.
4. Supports the function of selecting recently edited articles to avoid creating a new group post every time
5. When the article content is not specified, use the clipboard paste method to fill in the content, replacing the original simulated keyboard input method.
1. Log in with the default account and password.
2. Correction of official website page elements and restoration of mass sending process
1. Support the use of local configuration files in JSON format as parameters to avoid leaking key information from the command line
2. Support displaying article content during the publishing process
Opinions and Suggestions