Kaynağa Gözat

视频号搜索增加次数限制300

zhangyong 7 ay önce
ebeveyn
işleme
c63dfb21ce

+ 1 - 1
data_channel/ks_ls.py

@@ -12,7 +12,7 @@ class KSLS:
         #  快手app
         url = "http://8.217.190.241:8888/crawler/kuai_shou/blogger"
         next_cursor = ""
-        for i in range(50):
+        for i in range(20):
             payload = json.dumps({
                 "account_id": url_id,
                 "sort_type": "最热",

+ 1 - 1
redis_clear_mark.py

@@ -4,7 +4,7 @@ from common.redis import del_dyss_redis_key
 
 
 def redis_bot():
-    lists = ['dyss-count', 'sph-count']
+    lists = ['dyss-count', 'sph-count', 'sphss-count']
     print("开始执行")
     for mark_count in lists:
         print(mark_count)

+ 7 - 0
video_rewriting/video_processor.py

@@ -594,6 +594,13 @@ class VideoProcessor:
                 if int(count) == 300:
                     Common.logger(mark).log(f"抖音搜索接口今日已经上限")
                     return "抖音搜索上限"
+            if mark == 'sph-pl-gjc':
+                mark_count = 'sphss-count'
+                count = get_first_value_with_prefix(mark_count)
+                increment_key(mark_count)
+                if int(count) == 300:
+                    Common.logger(mark).log(f"视频号搜索接口今日已经上限")
+                    return "视频号搜索上限"
             if mark == 'sph-plzh'and task['channel_id'] == '视频号':
                 mark_count = 'sph-count'
                 count = get_first_value_with_prefix(mark_count)