Ver código fonte

update cookie切换

lierqiang 2 anos atrás
pai
commit
69ed444abe
1 arquivos 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

@@ -380,7 +380,7 @@ class Follow:
                 payload = json.dumps({
                     "operationName": "visionProfilePhotoList",
                     "variables": {
-                        "userId": "3xnmyk8gnhs5eze",
+                        "userId": out_uid,
                         "pcursor": "",
                         "page": "profile"
                     },
@@ -392,7 +392,7 @@ class Follow:
                     'Accept': '*/*',
                     'Accept-Language': 'zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2',
                     'Accept-Encoding': 'gzip, deflate, br',
-                    'Referer': 'https://www.kuaishou.com/profile/3xnmyk8gnhs5eze',
+                    'Referer': f'https://www.kuaishou.com/profile/{out_uid}',
                     'content-type': 'application/json',
                     'Origin': 'https://www.kuaishou.com',
                     'Connection': 'keep-alive',