|
@@ -119,7 +119,7 @@ class BSZHRecommend(object):
|
|
|
item.add_video_info("platform", self.platform)
|
|
|
item.add_video_info("strategy", self.mode)
|
|
|
item.add_video_info("session", "{}-{}".format(self.platform, int(time.time())))
|
|
|
- item.add_video_info("user_id", our_user["uid"])
|
|
|
+ item.add_video_info("user_id", our_user["nid"])
|
|
|
item.add_video_info("user_name", our_user["nick_name"])
|
|
|
mq_obj = item.produce_item()
|
|
|
pipeline = PiaoQuanPipeline(
|
|
@@ -150,7 +150,21 @@ if __name__ == '__main__':
|
|
|
platform="benshanzhufu",
|
|
|
mode="recommend",
|
|
|
rule_dict={},
|
|
|
- user_list=[{'uid': "123456", 'nick_name': "xiaoxiao"}],
|
|
|
+ user_list=[{
|
|
|
+ "createTime": 1684311893899,
|
|
|
+ "id": 8,
|
|
|
+ "interval": 7200,
|
|
|
+ "machine": "aliyun",
|
|
|
+ "mode": "recommend",
|
|
|
+ "operator": "王雪珂",
|
|
|
+ "rule": "[{\"like_cnt\":{\"min\":0,\"max\":0}}]",
|
|
|
+ "source": "benshanzhufu",
|
|
|
+ "spiderName": "run_bszf_recommend",
|
|
|
+ "startTime": 1730452800000,
|
|
|
+ "status": 0,
|
|
|
+ "taskName": "本山祝福",
|
|
|
+ "updateTime": 1730452617817
|
|
|
+}],
|
|
|
|
|
|
)
|
|
|
J.get_recommend_list()
|