Sfoglia il codice sorgente

调整回原设置

bobobo80 8 anni fa
parent
commit
a5a8926d22
2 ha cambiato i file con 8 aggiunte e 10 eliminazioni
  1. 6 6
      Config.ini
  2. 2 4
      ProxyGetter/getFreeProxy.py

+ 6 - 6
Config.ini

@@ -3,14 +3,14 @@
 ;type: SSDB/REDIS
 type = SSDB
 host = localhost
-port = 6379
+port = 8888
 name = proxy
 
 [ProxyGetter]
 ;register the proxy getter function
-;freeProxyFirst  = 1
-;freeProxySecond = 1
-;freeProxyThird  = 1
-;freeProxyFourth = 1
-;freeProxyFifth  = 1
+freeProxyFirst  = 1
+freeProxySecond = 1
+freeProxyThird  = 1
+freeProxyFourth = 1
+freeProxyFifth  = 1
 freeProxySixth = 1

+ 2 - 4
ProxyGetter/getFreeProxy.py

@@ -13,8 +13,6 @@
 """
 import re
 import requests
-import sys
-sys.path.append('../')
 
 try:
     from importlib import reload  # py3 实际不会实用,只是为了不显示语法错误
@@ -157,8 +155,8 @@ if __name__ == '__main__':
     # for e in gg.freeProxyThird():
     #     print e
 
-    for e in gg.freeProxySixth():
-        print(e)
+    # for e in gg.freeProxySixth():
+    #     print(e)
 
         # for e in gg.freeProxyFifth():
         #     print(e)