DIY命令行实用程序用于安排和发布tweet

网友投稿 672 2022-10-23

DIY命令行实用程序用于安排和发布tweet

DIY命令行实用程序用于安排和发布tweet

About

DIY command-line utility to schedule and publish tweets

go get github.com/selvan/turret

Hacking source

Build

git clone github.com/selvan/turret.gitexport GOPATH=`pwd`/turretexport PATH=$GOPATH/bin:$PATHcd turret# See vendor/ for dependencies# build turret binarygo build

Test

go test

Using

Create a Twitter App

Login to your twitter accountCreate an app at https://apps.twitter.com/Click on the "Keys and Access Tokens" tab in newly created appFrom "Application Settings" get "Consumer Key" and "Consumer Secret"From "Your Access Token" get "Access Token" and "Access Token Secret"

Create CREDENTIALS file

mkdir ~/.turrettouch ~/.turret/CREDENTIALS

Contents of ~/.turret/CREDENTIALS

Create tweets.csv with schedule date + time and status, in following format

2017-Jan-02 10:30,"Test tweet"2017-Jan-02 10:33,"Another test tweet"2017-Jan-03 8:30,"Next day test tweet"2017-Jan-03 14:15,"Another next day test tweet"

Execution

From within the folder of tweets.csv, execute

turret

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:prim最小生成树算法题poj2485
下一篇:[最小费用最大流]UVa1658
相关文章

 发表评论

暂时没有评论,来抢沙发吧~