|
@@ -36,7 +36,7 @@ class PromoterLiveInfoSpider:
|
|
table_name = 'kwai_promoter_live_info'
|
|
table_name = 'kwai_promoter_live_info'
|
|
data = json.loads(rep.text)["data"]
|
|
data = json.loads(rep.text)["data"]
|
|
if data["likesCountInfo"] is None:
|
|
if data["likesCountInfo"] is None:
|
|
- SendFeiShuMsg.send_robot_msg("达人直播数据 is None")
|
|
|
|
|
|
+ SendFeiShuMsg.send_robot_msg("达人{promoterId}直播数据 is None".format(promoterId=promoterId))
|
|
else:
|
|
else:
|
|
promoter_info_item = {"commentsCountInfo": json.dumps(data["commentsCountInfo"]),
|
|
promoter_info_item = {"commentsCountInfo": json.dumps(data["commentsCountInfo"]),
|
|
"likesCountInfo": json.dumps(data["likesCountInfo"]),
|
|
"likesCountInfo": json.dumps(data["likesCountInfo"]),
|
|
@@ -103,5 +103,5 @@ class PromoterLiveInfoSpider:
|
|
live_analyse_item_list.append(live_analyse_item)
|
|
live_analyse_item_list.append(live_analyse_item)
|
|
batch_insert(table_name=live_analyse_table_name, item_list=live_analyse_item_list)
|
|
batch_insert(table_name=live_analyse_table_name, item_list=live_analyse_item_list)
|
|
except Exception as e:
|
|
except Exception as e:
|
|
- SendFeiShuMsg.send_robot_msg('PromoterLiveInfoSpider请求错误请检查cookie{e}'.format(e=e))
|
|
|
|
-
|
|
|
|
|
|
+ SendFeiShuMsg.send_robot_msg(
|
|
|
|
+ 'PromoterLiveInfoSpider {promoterId}请求错误请检查cookie{e}'.format(promoterId=promoterId, e=e))
|