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))