From 1124699b3b0d844853b550509c56183796eb35a9 Mon Sep 17 00:00:00 2001 From: EmaMaker Date: Fri, 27 Aug 2021 22:47:41 +0200 Subject: [PATCH] properly use Gists Enum --- src/utils/proxy.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/proxy.py b/src/utils/proxy.py index e193dc1..57dda2e 100644 --- a/src/utils/proxy.py +++ b/src/utils/proxy.py @@ -9,8 +9,8 @@ import time class Proxy(): def __init__(self): Proxy.PROXY_COMBOS = [ - ( ('giangillo.rossi1@gmail.com', 'emamaker02'), Gists.PROXY1), - ( ('giangillo.rossi2@gmail.com', 'emamaker02'), Gists.PROXY2) + ( ('giangillo.rossi1@gmail.com', 'emamaker02'), Gists.PROXY1.value), + ( ('giangillo.rossi2@gmail.com', 'emamaker02'), Gists.PROXY2.value) ] Proxy.TIME_ELAPSED = 2400 #time that has to pass before changing account combo, in seconds @@ -39,6 +39,7 @@ class Proxy(): print("[PROXY] Refreshing existing proxy to get new ip") #just refresh self.colab.refresh_event.set() + time.sleep(90) global_vars.PROXY = self.ngrok.get_proxy_ip() print("[PROXY] Done! New proxy is: {} ".format(global_vars.PROXY))