|
|
@ -13,11 +13,10 @@ class spiderWeiboComment extends dealBase { |
|
|
|
} |
|
|
|
|
|
|
|
public function deal() { |
|
|
|
exit; |
|
|
|
$obj = new mSpider(); |
|
|
|
$rdobj = $obj->initRedis(); |
|
|
|
|
|
|
|
$cookie_json = $rdobj->get(_RC_WEIBO_LOGIN_COOKIE2); |
|
|
|
$cookie_json = $rdobj->get(_RC_WEIBO_COMMENT_LOGIN_COOKIE2); |
|
|
|
$baselog = PROC_CODE . "|"; |
|
|
|
if(empty($cookie_json)) { |
|
|
|
if($rdobj->llen(_RQ_SPIDER_WEIBO_COMMENT) + 0 > 0) $obj->writeLog(ZHISHIKU_SPIDER_LOG, ZHISHIKU_SPIDER_COMMENT, 'cookie为空:'.$baselog); |
|
|
@ -76,7 +75,7 @@ class spiderWeiboComment extends dealBase { |
|
|
|
$obj->writeLog(ZHISHIKU_SPIDER_LOG, ZHISHIKU_SPIDER_COMMENT, '队列评论抓取失败,重试中:'.$error.'|'.$baselog.'|redis:'.$rds); |
|
|
|
|
|
|
|
unset($cookie_data[PROC_CODE]); |
|
|
|
$rdobj->set(_RC_WEIBO_LOGIN_COOKIE2, json_encode($cookie_data)); |
|
|
|
$rdobj->set(_RC_WEIBO_COMMENT_LOGIN_COOKIE2, json_encode($cookie_data)); |
|
|
|
if ($obj->is_change_ip && PROC_CODE == 0) $rdobj->del(_RC_SPIDER_WEIBO_COMMENT_USE_IP); |
|
|
|
|
|
|
|
$obj->sendMail(array('1432334894@qq.com'), date('Y年m月d日', time()) . '-微博评论数据抓取', $error); |
|
|
|