Kaynağa Gözat

测试GPU性能

罗俊辉 9 ay önce
ebeveyn
işleme
9a34e75bad

+ 1 - 0
applications/asyncMySQL.py

@@ -24,6 +24,7 @@ class AsyncMySQLClient(object):
             password='crawler123456@',
             password='crawler123456@',
             db='piaoquan-crawler',
             db='piaoquan-crawler',
             charset='utf8mb4',
             charset='utf8mb4',
+            maxsize=100,
             connect_timeout=120,
             connect_timeout=120,
         )
         )
         print("mysql init successfully")
         print("mysql init successfully")

+ 0 - 1
applications/wxSpider.py

@@ -133,7 +133,6 @@ class ArticleManager(object):
             'Content-Type': 'application/json'
             'Content-Type': 'application/json'
         }
         }
         response = requests.post(url, headers=headers, data=json.dumps(payload))
         response = requests.post(url, headers=headers, data=json.dumps(payload))
-        print(response.json())
         return response.json()
         return response.json()
 
 
     @classmethod
     @classmethod

+ 0 - 1
routes/articleDBServer.py

@@ -146,7 +146,6 @@ class ArticleSpider(object):
         :return:
         :return:
         """
         """
         response = self.tools.update_msg_list(ghId=gh_id, index=cursor)
         response = self.tools.update_msg_list(ghId=gh_id, index=cursor)
-        print(response)
         msg_list = response.get("data", {}).get("data")
         msg_list = response.get("data", {}).get("data")
         if msg_list:
         if msg_list:
             # print(msg_list)
             # print(msg_list)