@@ -103,7 +103,7 @@ def update(self):
103103
104104class eGen :
105105 def __init__ (self ):
106- self .version = "v1.2.2 "
106+ self .version = "v1.2.3 "
107107 AutoUpdater (self .version ).update ()
108108 self .Utils = Utils () # Utils Module
109109 self .config : Any = load (open ('config.json' )) # Config File
@@ -165,7 +165,7 @@ def check_proxy(self, proxy):
165165 get ("https://outlook.live.com" , proxies = {
166166 "http" : "http://{}" .format (proxy ),
167167 "https" : "http://{}" .format (proxy )
168- }, timeout = self .config ["ProxyCheckTimeout" ])
168+ }, timeout = self .config ["Common" ][ " ProxyCheckTimeout" ] or 5 )
169169 return True
170170 return False
171171
@@ -235,7 +235,6 @@ def CreateEmail(self, driver: WebDriver):
235235 try :
236236 global eGenerated , solvedCaptcha
237237 self .update ()
238- driver .set_page_load_timeout (5 )
239238 self .Timer .start (time ()) if self .config ["Common" ]['Timer' ] else ''
240239 driver .get ("https://outlook.live.com/owa/?nlp=1&signup=1" )
241240 assert 'Create' in driver .title
@@ -259,6 +258,7 @@ def CreateEmail(self, driver: WebDriver):
259258 self .fElement (driver , By .ID , 'iSignupAction' ).click ()
260259 first = self .fElement (driver , By .ID , "FirstName" )
261260 first .send_keys (self .first_name )
261+ sleep (.3 )
262262 last = self .fElement (driver , By .ID , "LastName" )
263263 last .send_keys (self .last_name )
264264 self .fElement (driver , By .ID , 'iSignupAction' ).click ()
@@ -299,16 +299,19 @@ def CreateEmail(self, driver: WebDriver):
299299 def run (self ):
300300 # Run Script Function
301301 self .print ('&bCoded with &c<3&b by MatrixTeam' )
302- while True :
303- self .generate_info ()
304- proxy = choice (self .proxies ) # Select Proxy
305- if not self .check_proxy (proxy ):
306- self .print ("&c%s &f| &4Invalid Proxy&f" % proxy )
307- self .proxies .remove (proxy )
308- continue
309- self .print (proxy )
310- self .options .add_argument ("--proxy-server=http://%s" % proxy )
311- self .CreateEmail (driver = webdriver .Chrome (options = self .options , desired_capabilities = self .capabilities ))
302+ with suppress (IndexError ):
303+ while True :
304+ self .generate_info ()
305+ proxy = choice (self .proxies ) # Select Proxy
306+ if not self .check_proxy (proxy ):
307+ self .print ("&c%s &f| &4Invalid Proxy&f" % proxy )
308+ self .proxies .remove (proxy )
309+ continue
310+ self .print (proxy )
311+ self .options .add_argument ("--proxy-server=http://%s" % proxy )
312+ self .CreateEmail (driver = webdriver .Chrome (options = self .options , desired_capabilities = self .capabilities ))
313+ self .print ("&4No Proxy Available, Exiting!" )
314+
312315
313316
314317if __name__ == '__main__' :
0 commit comments