فهرست منبع

Merge branch 'jhao104/master' of https://github.com/1again/proxy_pool into 1again-jhao104/master

# Conflicts:
#	DB/DbClient.py
#	Util/GetConfig.py
jhao 7 سال پیش
والد
کامیت
110b0df1e2
3فایلهای تغییر یافته به همراه3 افزوده شده و 8 حذف شده
  1. 1 4
      Api/ProxyApi.py
  2. 1 3
      Config.ini
  3. 1 1
      Schedule/ProxyValidSchedule.py

+ 1 - 4
Api/ProxyApi.py

@@ -84,10 +84,7 @@ def getStatus():
 
 
 
 
 def run():
 def run():
-    if sys.platform.startswith("win"):
-        app.run(host=config.host_ip, port=config.host_port)
-    else:
-        app.run(host=config.host_ip, port=config.host_port, threaded=False, processes=config.processes)
+    app.run(host=config.host_ip, port=config.host_port)
 
 
 
 
 if __name__ == '__main__':
 if __name__ == '__main__':

+ 1 - 3
Config.ini

@@ -32,6 +32,4 @@ freeProxyTwelve = 1
 # The ip specified when starting the web API
 # The ip specified when starting the web API
 ip = 0.0.0.0
 ip = 0.0.0.0
 # he port on which to run the web API
 # he port on which to run the web API
-port = 5010
-# Flask processes option
-processes = 10
+port = 8080

+ 1 - 1
Schedule/ProxyValidSchedule.py

@@ -32,7 +32,7 @@ class ProxyValidSchedule(ProxyManager, object):
         self.queue = Queue()
         self.queue = Queue()
         self.proxy_item = dict()
         self.proxy_item = dict()
 
 
-    def __validProxy(self, threads=10):
+    def __validProxy(self, threads=20):
         """
         """
         验证useful_proxy代理
         验证useful_proxy代理
         :param threads: 线程数
         :param threads: 线程数