Coder Social home page Coder Social logo

yicone / wechatmediaplatformautomation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from linusling/wechatmediaplatformautomation

0.0 2.0 0.0 54 KB

一款在微信公众号( https://mp.weixin.qq.com )自动发布文章的命令行工具。

License: MIT License

JavaScript 100.00%

wechatmediaplatformautomation's Introduction

WeChatMediaPlatformAutomation

一款在微信公众号( https://mp.weixin.qq.com )自动发布文章的命令行工具。

如何使用

  1. 安装:npm install wechat-mp-automation -g
  2. 打开命令行执行:
    1. 配置文件方式:
      1. wechat-mp-automation -C YOUR_CONFIG_JSON_FILE_PATH
    2. 非配置文件方式:
      1. 非原创:wechat-mp-automation -t [标题] -a [作者] -u [账号] -p [密码]
      2. 声明原创:wechat-mp-automation -t [标题] -a [作者] -u [账号] -p [密码] -o
  3. 过程中的两次扫码:一次扫码验证身份登录,一次扫码确认群发(如未异常报错)

本工具不以任何形式保存账号和密码!!!

puppeteer 安装失败可以参考这里

帮助文档

$ 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        声明原创[可选]
  -h, --help            output usage information

config.json demo:

{
  "title": "test",
  "author": "小铁匠Linus",
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "original": "true"
}

CHANGELOG

1.1.0

1. 支持使用 JSON 格式的本地配置文件作为参数,避免命令行泄漏关键信息

2. 支持在发布过程中展示文章内容

Demo

1.自动发布成功的流程示例

CorrectResult.png

2.发布失败流程及失败原因

error_progress.png

ErrorResult.png

TODO

  1. 通过指定特定文件来上传文章内容
  2. 文章发布前的设置可进行自定义

Issues

意见与建议

赞赏

wechatmediaplatformautomation's People

Contributors

linusling avatar yicone avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.