This repository was archived by the owner on May 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 26
26
run : |
27
27
python -m pip install --upgrade pip
28
28
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
30
31
31
32
- name : Lint with flake8
32
33
run : |
Original file line number Diff line number Diff line change 4
4
import time
5
5
from DrissionPage import ChromiumPage
6
6
7
+
7
8
class CloudflareBypasser :
8
9
def __init__ (self , driver : ChromiumPage , max_retries = - 1 , log = True ):
9
10
self .driver = driver
@@ -37,7 +38,7 @@ def search_recursively_shadow_root_with_cf_input(self, ele):
37
38
except Exception as e :
38
39
self .log_message (f"Error searching shadow root with CF input: { e } " )
39
40
return None
40
-
41
+
41
42
def locate_cf_button (self ):
42
43
try :
43
44
button = None
@@ -47,7 +48,7 @@ def locate_cf_button(self):
47
48
if "turnstile" in ele .attrs ["name" ] and ele .attrs ["type" ] == "hidden" :
48
49
button = ele .parent ().shadow_root .child ()("tag:body" ).shadow_root ("tag:input" )
49
50
break
50
-
51
+
51
52
if button :
52
53
return button
53
54
else :
@@ -104,4 +105,4 @@ def bypass(self):
104
105
if self .is_bypassed ():
105
106
self .log_message ("Bypass successful." )
106
107
else :
107
- self .log_message ("Bypass failed." )
108
+ self .log_message ("Bypass failed." )
Original file line number Diff line number Diff line change 1
1
import string
2
2
import random
3
- import toml
4
3
import asyncio
5
- import platform
6
4
7
5
8
6
class Main :
@@ -44,5 +42,6 @@ async def switchDomain(maildomain, externaldomain):
44
42
)
45
43
return externaldomain
46
44
45
+
47
46
if __name__ == "__main__" :
48
47
print ("This is a library file. Please run main.py instead." )
Original file line number Diff line number Diff line change 9
9
10
10
warnings .filterwarnings ("ignore" , category = TqdmExperimentalWarning )
11
11
12
+
12
13
async def main ():
13
14
14
15
port = ChromiumOptions ().auto_port ()
@@ -29,7 +30,7 @@ async def main():
29
30
)
30
31
print ()
31
32
executionCount = int (executionCount ) if executionCount .isdigit () else 1
32
-
33
+
33
34
for x in range (executionCount ):
34
35
bar = tqdm (total = 100 )
35
36
bar .set_description (f"Initial setup completed [{ x + 1 } /{ executionCount } ]" )
@@ -142,7 +143,7 @@ async def main():
142
143
bar .update (20 )
143
144
tab .get (link )
144
145
145
- bar .set_description (f "Clearing cache and data" )
146
+ bar .set_description ("Clearing cache and data" )
146
147
bar .update (9 )
147
148
tab .set .cookies .clear ()
148
149
tab .clear_cache ()
@@ -177,4 +178,4 @@ async def main():
177
178
print ("\033 [0m" "\n Credentials saved to accounts.txt\n Have fun using ExitLag!" )
178
179
179
180
if __name__ == "__main__" :
180
- asyncio .run (main ())
181
+ asyncio .run (main ())
You can’t perform that action at this time.
0 commit comments