lierqiang há 2 anos atrás
pai
commit
6f5295060e
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      kuaishou/kuaishou_follow/kuaishou_follow.py

+ 2 - 2
kuaishou/kuaishou_follow/kuaishou_follow.py

@@ -392,7 +392,7 @@ class KuaiShouFollow:
                 'content-type': 'application/json',
                 'Origin': 'https://www.kuaishou.com',
                 'Connection': 'keep-alive',
-                'Cookie': 'kpf=PC_WEB; clientid=3; did=web_cb989442745f6db4521d6b21032475a6; kpn=KUAISHOU_VISION',
+                'Cookie': 'kpf=PC_WEB; clientid=3; did=web_1e446c59887cc91ea3d1bd3452b7179d; kpn=KUAISHOU_VISION',
                 'Sec-Fetch-Dest': 'empty',
                 'Sec-Fetch-Mode': 'cors',
                 'Sec-Fetch-Site': 'same-origin'
@@ -610,7 +610,7 @@ class KuaiShouFollow:
                     return
             cls.get_videoList(log_type, crawler, strategy, our_uid, out_uid, oss_endpoint, env, machine,
                               pcursor=pcursor)
-            time.sleep(random.randint(1, 3))
+            time.sleep(random.randint(3, 5))
         except Exception as e:
             Common.logger(log_type, crawler).error(f"get_videoList:{e}\n")