Browse Source

ProxyRotate bug resolved

Akash Singh 3 years ago
parent
commit
c7e6a7889b
2 changed files with 8 additions and 6 deletions
  1. 1 0
      baangt/base/ProxyRotate.py
  2. 7 6
      examples/globalYoutube.json

+ 1 - 0
baangt/base/ProxyRotate.py

@@ -204,6 +204,7 @@ class ProxyRotate(metaclass=Singleton):
             for proxy in proxy_lis[:(lineCount + 1)]: 
                 if proxy not in removable:
                     self.proxies[proxy.ip] = proxy
+                    self.all_proxies[proxy.ip] = proxy
                 else:
                     self.__temp_proxies.remove(proxy)
             logger.info(f"Total proxies in list currently = {str(len(self.all_proxies))}")

+ 7 - 6
examples/globalYoutube.json

@@ -1,15 +1,16 @@
 {
     "exportFilesBasePath": "",
     "TC.Lines": "",
-    "TC.dontCloseBrowser": "",
-    "TC.slowExecution": "",
-    "TC.NetworkInfo": "",
-    "TX.DEBUG": "True",
+    "TC.dontCloseBrowser": "False",
+    "TC.slowExecution": "False",
+    "TC.NetworkInfo": "False",
+    "TX.DEBUG": "False",
     "TC.ExportAllFields": "True",
     "TC.RestartBrowser": "True",
     "TC.UseRotatingProxies": "True",
     "TC.ReReadProxies": "True",
-    "TC.BrowserAttributes": "{\"HEADLESS\":\"True\"}",
+    "TC.BrowserAttributes": "",
     "TC.Browser": "",
-    "TC.ParallelRuns": "2"
+    "TC.ParallelRuns": "2",
+    "TC.LogLevel": "Debug"
 }