wangkun 1 éve
szülő
commit
65c065f75f

+ 3 - 3
shipinhao/shipinhao_recommend/recommend_h5.py

@@ -25,7 +25,7 @@ class RecommendH5:
         Common.logger(log_type, crawler).info('启动微信')
         Common.logging(log_type, crawler, env, '启动微信')
         if env == "dev":
-            chromedriverExecutable = "/Users/wangkun/Downloads/chromedriver/chromedriver_v107/chromedriver"
+            chromedriverExecutable = "/Users/wangkun/Downloads/chromedriver/chromedriver_v111/chromedriver"
         else:
             chromedriverExecutable = '/Users/lieyunye/Downloads/chromedriver/chromedriver_v111/chromedriver'
         caps = {
@@ -261,10 +261,10 @@ if __name__ == "__main__":
         {'video_title': '女子一回家就开始脱衣服,不料老公的弟弟还在家里,女子下一秒的反应亮了!', 'video_id': 'c75472e887f2641acd34138b705cf8b9', 'duration': 11, 'user_name': '西米七七', 'like_cnt': 4335, 'share_cnt': 1107, 'favorite_cnt': 13000, 'comment_cnt': 1068, 'publish_time_str': '2023-07-26', 'publish_time_stamp': 1690300800, 'publish_time': 1690300800000, 'period': 0}]
     RecommendH5.download_videos(log_type="recommend",
                                 crawler="shipinhao",
-                                env="dev",
+                                env="prod",
                                 rule_dict={"period": {"min": 365, "max": 365},
                                            "duration": {"min": 10, "max": 1800},
                                            "favorite_cnt": {"min": 50000, "max": 0},
                                            "share_cnt": {"min": 10000, "max": 0}},
-                                our_uid=6267140
+                                our_uid=61333564
                                 )

+ 1 - 1
shipinhao/shipinhao_recommend/shipinhao_recommend.py

@@ -282,6 +282,6 @@ if __name__ == "__main__":
                  "duration": {"min": 10, "max": 1800},
                  "favorite_cnt": {"min": 50000, "max": 0},
                  "share_cnt": {"min": 10000, "max": 0}}
-    ShipinhaoRecommend.get_recommend_list("recommend", "shipinhao", rule_dict1, 5, "prod")
+    ShipinhaoRecommend.get_recommend_list("recommend", "shipinhao", rule_dict1, 5, "dev")
     print(ShipinhaoRecommend.download_video_list)
     pass