renyupeng 2 years ago
parent
commit
845d14f26e
1 changed files with 1 additions and 5 deletions
  1. 1 5
      spider/PromoterFansInfo.py

+ 1 - 5
spider/PromoterFansInfo.py

@@ -33,6 +33,7 @@ class PromoterFansInfo:
                 rep = requests.get(url=url, headers=headers)
                 table_name = 'kwai_promoter_fans_info'
                 data = json.loads(rep.text)["data"]
+                print(data,'--------data--------')
                 if data["fansProvinceFeature"] is None:
                     SendFeiShuMsg.send_robot_msg("达人{promoterId}粉丝数据 is None".format(promoterId=promoterId))
                 else:
@@ -153,8 +154,3 @@ class PromoterFansInfo:
             SendFeiShuMsg.send_robot_msg(
                 'PromoterFansInfo   {promoterId}请求错误请检查cookie{e}'.format(promoterId=promoterId, e=e))
 
-
-if __name__ == '__main__':
-    sql = "select cookie from kwai_promoter.kuaishou_supply_chain_cookie"
-    cookie = MysqlUtils().QueryOne(sql)[0]
-    PromoterFansInfo().PromoterFansInfoHandler(cookie=cookie, promoterId=2928679236)