properly use Gists Enum

master
EmaMaker 2021-08-27 22:47:41 +02:00
parent 5b0af63c49
commit 1124699b3b
1 changed files with 3 additions and 2 deletions

View File

@ -9,8 +9,8 @@ import time
class Proxy(): class Proxy():
def __init__(self): def __init__(self):
Proxy.PROXY_COMBOS = [ Proxy.PROXY_COMBOS = [
( ('giangillo.rossi1@gmail.com', 'emamaker02'), Gists.PROXY1), ( ('giangillo.rossi1@gmail.com', 'emamaker02'), Gists.PROXY1.value),
( ('giangillo.rossi2@gmail.com', 'emamaker02'), Gists.PROXY2) ( ('giangillo.rossi2@gmail.com', 'emamaker02'), Gists.PROXY2.value)
] ]
Proxy.TIME_ELAPSED = 2400 #time that has to pass before changing account combo, in seconds 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") print("[PROXY] Refreshing existing proxy to get new ip")
#just refresh #just refresh
self.colab.refresh_event.set() self.colab.refresh_event.set()
time.sleep(90)
global_vars.PROXY = self.ngrok.get_proxy_ip() global_vars.PROXY = self.ngrok.get_proxy_ip()
print("[PROXY] Done! New proxy is: {} ".format(global_vars.PROXY)) print("[PROXY] Done! New proxy is: {} ".format(global_vars.PROXY))