Selaa lähdekoodia

视频号规则更改

zhangyong 8 kuukautta sitten
vanhempi
commit
cb590ca5f8
3 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 1 0
      data_channel/dy_ls.py
  2. 1 0
      data_channel/ks_ls.py
  3. 1 1
      data_channel/shipinhao.py

+ 1 - 0
data_channel/dy_ls.py

@@ -14,6 +14,7 @@ class DYLS:
     def get_dyls_list(cls, task_mark, url_id, number, mark):
     def get_dyls_list(cls, task_mark, url_id, number, mark):
         next_cursor = ""
         next_cursor = ""
         for i in range(50):
         for i in range(50):
+            #  抖查查
             url = "http://8.217.190.241:8888/crawler/dou_yin/blogger"
             url = "http://8.217.190.241:8888/crawler/dou_yin/blogger"
             payload = json.dumps({
             payload = json.dumps({
                 "account_id": url_id,
                 "account_id": url_id,

+ 1 - 0
data_channel/ks_ls.py

@@ -9,6 +9,7 @@ class KSLS:
 
 
     @classmethod
     @classmethod
     def get_ksls_list(cls, task_mark, url_id, number, mark):
     def get_ksls_list(cls, task_mark, url_id, number, mark):
+        #  快手app
         url = "http://8.217.190.241:8888/crawler/kuai_shou/blogger"
         url = "http://8.217.190.241:8888/crawler/kuai_shou/blogger"
         next_cursor = ""
         next_cursor = ""
         for i in range(50):
         for i in range(50):

+ 1 - 1
data_channel/shipinhao.py

@@ -113,7 +113,7 @@ class SPH:
                             video_percent = '%.2f' % (share_cnt / like_cnt)
                             video_percent = '%.2f' % (share_cnt / like_cnt)
                             special = float(0.25)
                             special = float(0.25)
                             if like_cnt >= 30000 or like_cnt >= 50000 or (share_cnt >= 300 and float(video_percent) >= special):
                             if like_cnt >= 30000 or like_cnt >= 50000 or (share_cnt >= 300 and float(video_percent) >= special):
-
+                            
                             # if float(video_percent) < special:
                             # if float(video_percent) < special:
                             #     Common.logger("sph").info(
                             #     Common.logger("sph").info(
                             #         f"不符合规则:{task_mark},用户主页id:{url},视频id{objectId} ,分享:{share_cnt},点赞:{like_cnt}")
                             #         f"不符合规则:{task_mark},用户主页id:{url},视频id{objectId} ,分享:{share_cnt},点赞:{like_cnt}")