洞察探索如何利用兼容微信生态的小程序容器,实现跨平台开发,助力金融和车联网行业的数字化转型。
672
2022-10-23
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小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~