renyupeng 3 years ago
parent
commit
ea39dcb5f6
1 changed files with 7 additions and 1 deletions
  1. 7 1
      Apietl/task/KuaishouMaterialRequest.py

+ 7 - 1
Apietl/task/KuaishouMaterialRequest.py

@@ -70,9 +70,12 @@ class KuaishouMaterialRequest:
                 for info in material_list:
                     info = list(info)
                     req_data = {"accountId": account_id, "photoIds": info}
+                    print(11111,req_data)
+
                     data = json.dumps(req_data)
                     try:
                         repo = requests.post(url=url, data=data, headers=headers)
+                        print(22222,repo)
                         logging.info("post  getKuaishouVideoByAccountId response:{}".format(repo))
 
                     except Exception as e:
@@ -81,8 +84,11 @@ class KuaishouMaterialRequest:
 
                 try:
                     req_datas = {"accountId": account_id, "photoIds": list(material_ids)}
+                    print(333333,req_datas)
+
                     datas = json.dumps(req_datas)
                     repo = requests.post(url=url, data=datas, headers=headers)
+                    print(44444,repo)
                     logging.info("post  getKuaishouVideoByAccountId response:{}".format(repo))
                 except Exception as e:
                     logging.error("""post getKuaishouVideoByAccountId error {e}""".format(e=e))
@@ -90,4 +96,4 @@ class KuaishouMaterialRequest:
 
 
 if __name__ == '__main__':
-    KuaishouMaterialRequest().range_hosts()
+    KuaishouMaterialRequest().handler()