Coder Social home page Coder Social logo

post-dispatcher's Introduction

Post Dispatcher

自动发送博文到不同社交平台,SegmentFault、简书、CSDN等

实现原理

本项目的实现原理比较简单,主要是使用 SeleniumWebdriver,模拟浏览在操作,从登陆,编辑,到发布一系列的流程如同自动化。

使用说明

环境准备

  • JDK 1.8
  • Idea(安装Lombok)
  • Firefox

克隆代码

git clone https://github.com/codedrinker/post-dispatcher.git

配置依赖

因为使用原生的 Maven 的依赖不能运行 Selenium,所以并未深究,直接使用下载版本的依赖,放在项目 lib 目录,所以需要我们手动添加整个目录为 Library 即可。

配置账号

上文已经说了,使用模拟账号登录的方式,所以需要在 post-dispatcher.properties 里面配置好每一个平台的用户名和密码。
同时也支持使用-Dcustom-config=dp.properties 自定义配置名称。

编写内容

PostDispatcher 里面填写标题和标签 。 编写 Markdownresources/post.md

运行

配置全部完成以后直接运行 PostDispatcher 即可。

支持平台

  • SegmentFault:用户名密码登录
  • CSDN:Github 登录
  • 简书:用户名密码登录,需要功能介入点击图像验证码。

post-dispatcher's People

Watchers

James Cloos avatar tifancy 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.