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

Commit e0e1b45

Browse files
committed
General update
1 parent 7942d27 commit e0e1b45

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.github/workflows/workflow.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626
run: |
2727
python -m pip install --upgrade pip
2828
pip install flake8 pytest
29-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29+
if (Test-Path requirements.txt) { pip install -r requirements.txt }
30+
shell: pwsh
3031

3132
- name: Lint with flake8
3233
run: |

lib/bypass.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import time
55
from DrissionPage import ChromiumPage
66

7+
78
class CloudflareBypasser:
89
def __init__(self, driver: ChromiumPage, max_retries=-1, log=True):
910
self.driver = driver
@@ -37,7 +38,7 @@ def search_recursively_shadow_root_with_cf_input(self, ele):
3738
except Exception as e:
3839
self.log_message(f"Error searching shadow root with CF input: {e}")
3940
return None
40-
41+
4142
def locate_cf_button(self):
4243
try:
4344
button = None
@@ -47,7 +48,7 @@ def locate_cf_button(self):
4748
if "turnstile" in ele.attrs["name"] and ele.attrs["type"] == "hidden":
4849
button = ele.parent().shadow_root.child()("tag:body").shadow_root("tag:input")
4950
break
50-
51+
5152
if button:
5253
return button
5354
else:
@@ -104,4 +105,4 @@ def bypass(self):
104105
if self.is_bypassed():
105106
self.log_message("Bypass successful.")
106107
else:
107-
self.log_message("Bypass failed.")
108+
self.log_message("Bypass failed.")

lib/lib.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import string
22
import random
3-
import toml
43
import asyncio
5-
import platform
64

75

86
class Main:
@@ -44,5 +42,6 @@ async def switchDomain(maildomain, externaldomain):
4442
)
4543
return externaldomain
4644

45+
4746
if __name__ == "__main__":
4847
print("This is a library file. Please run main.py instead.")

main.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
warnings.filterwarnings("ignore", category=TqdmExperimentalWarning)
1111

12+
1213
async def main():
1314

1415
port = ChromiumOptions().auto_port()
@@ -29,7 +30,7 @@ async def main():
2930
)
3031
print()
3132
executionCount = int(executionCount) if executionCount.isdigit() else 1
32-
33+
3334
for x in range(executionCount):
3435
bar = tqdm(total=100)
3536
bar.set_description(f"Initial setup completed [{x + 1}/{executionCount}]")
@@ -142,7 +143,7 @@ async def main():
142143
bar.update(20)
143144
tab.get(link)
144145

145-
bar.set_description(f"Clearing cache and data")
146+
bar.set_description("Clearing cache and data")
146147
bar.update(9)
147148
tab.set.cookies.clear()
148149
tab.clear_cache()
@@ -177,4 +178,4 @@ async def main():
177178
print("\033[0m" "\nCredentials saved to accounts.txt\nHave fun using ExitLag!")
178179

179180
if __name__ == "__main__":
180-
asyncio.run(main())
181+
asyncio.run(main())

0 commit comments

Comments
 (0)