Skip to content
This repository was archived by the owner on May 24, 2025. It is now read-only.

Commit 348a814

Browse files
committed
Minor changes
1 parent 88cb11c commit 348a814

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

main.py

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
async def main():
1616
lib = Main()
1717
co = ChromiumOptions()
18-
co.auto_port()
19-
co.incognito()
18+
co.incognito().auto_port().mute(True)
2019

2120
print("Checking for updates...")
2221
await lib.checkUpdate()
@@ -82,6 +81,7 @@ async def main():
8281
bar.update(20)
8382
chrome = Chromium(addr_or_opts=co)
8483
page = chrome.get_tab(id_or_num=1)
84+
page.set.window.max()
8585
page.listen.start("https://mails.org", method="POST")
8686
page.get("https://mails.org")
8787

@@ -124,20 +124,8 @@ async def main():
124124
tab.ele("#inputNewPassword2").input(passw)
125125
page.listen.start("https://mails.org", method="POST")
126126

127-
startTime = time.time()
128-
while True:
129-
endTime = time.time()
130-
if endTime - startTime > 10:
131-
print("Failed to find captcha. Exiting...")
132-
return
133-
else:
134-
if tab.ele(".:grecaptcha-badge"):
135-
break
136127
tab.ele(".custom-checkbox--input checkbox").click()
137128

138-
bar.set_description(f"Signup process [{x + 1}/{executionCount}]")
139-
bar.update(30)
140-
141129
try:
142130
tab.ele(
143131
".btn btn-primary btn-block btn-recaptcha btn-recaptcha-invisible"
@@ -148,6 +136,9 @@ async def main():
148136
".btn btn-primary btn-block btn-recaptcha btn-recaptcha-invisible"
149137
).click()
150138

139+
bar.set_description(f"Signup process [{x + 1}/{executionCount}]")
140+
bar.update(30)
141+
151142
if tab.wait.url_change("https://www.exitlag.com/clientarea.php", timeout=60):
152143
if tab.ele(".alert--title", timeout=60):
153144
link = None

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v3.98
1+
v3.99

0 commit comments

Comments
 (0)