Browse Source

视频号内容相似溯源 修改

zhangyong 11 months ago
parent
commit
8c16bb80f1
1 changed files with 4 additions and 4 deletions
  1. 4 4
      xssy_channel/sph_jr_nrxs.py

+ 4 - 4
xssy_channel/sph_jr_nrxs.py

@@ -242,14 +242,14 @@ class SphNrxs:
           'Content-Type': 'application/json'
         }
         try:
-            time.sleep(2)
+            # time.sleep(2)
             response = requests.request("POST", url, headers=headers, data=payload)
             response = response.json()
-            if response['data'] == None:
-                sqlCollect.update_machine_making_reflux(uid)
-                return
             code = response['code']
             if code == 0:
+                if response['data'] == None:
+                    sqlCollect.update_machine_making_reflux(uid)
+                    return
                 status = sqlCollect.select_crawler_uesr_v3(uid)
                 if status:
                     pq_id = re.sub(r'[(),]', '', str(status))