properly use Gists Enum
parent
5b0af63c49
commit
1124699b3b
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue