Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (33 sloc) 1.086 kB
配置:
1、复制etc/settings.json.dist为etc/settings.json
2、按照配置说明修改配置文件
{
"logFile":"microblog.log", //日志文件路径
"mode":"debug", //运行模式
"deletersCount":10,//并发数
""
"weibo":{
"appkey":"888888888", //新浪微博分配的应用编号
"secret":"888888888888888888", //新浪微博分配的密钥
"host":"api.weibo.com",//新浪的服务器
"remove":"/2/statuses/destroy.json",//删微博的uri
"token":"/oauth2/access_token",
"interval":60 //同一个账号的发微博间隔,单位秒
},
"mysql":{
"host":"172.16.33.237",
"user":"stockradar",
"password":"stockradar",
"database":"stock_radar"
},
"queue":{
"remove":"weibo_delete", //删微博的任务队列
"interval":10000, //轮询间隔,单位是毫秒
"host":"172.16.33.237",
"port":3000,
"retry":10 //如果过出队次数超过,则强制将任务置为完成状态
}
}
运行:
执行命令
node delete.js
Jump to Line
Something went wrong with that request. Please try again.