Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-reese84
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangmingming
lcc-reese84
Commits
1a4197c8
Commit
1a4197c8
authored
Oct 24, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e8e39043
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
17 deletions
+22
-17
main.py
src/main.py
+22
-17
No files found.
src/main.py
View file @
1a4197c8
...
...
@@ -50,32 +50,37 @@ def add_header(headers: dict, cookies: dict, px: str, thread_id=0):
def
exec
(
thread_id
):
id_
=
uuid
.
uuid4
()
.
hex
try
:
px
=
get_proxy
()[
'url'
]
cf
=
Reese84ByPass
(
target
=
"https://www.flyscoot.com/"
,
proxy
=
px
,
thread_name
=
f
'{thread_id}'
)
headers
,
cookies
=
cf
.
start
()
# cf.test()
add_header
(
headers
,
cookies
,
px
,
thread_id
)
# except json.decoder.JSONDecodeError:
# print('json huoqu shibai ')
except
Exception
as
e
:
print
(
e
)
traceback
.
print_exc
()
def
run
():
brush_thread
=
2
while
True
:
print
(
f
'本次并发数 {brush_thread}'
)
id_
=
uuid
.
uuid4
()
.
hex
pull
=
check_pull
()
try
:
if
pull
.
get
(
'status'
)
==
1
:
print
(
'休眠十秒'
)
time
.
sleep
(
10
)
continue
except
:
pass
try
:
px
=
get_proxy
()[
'url'
]
cf
=
Reese84ByPass
(
target
=
"https://www.flyscoot.com/"
,
proxy
=
px
,
thread_name
=
f
'{thread_id}'
)
headers
,
cookies
=
cf
.
start
()
# cf.test()
add_header
(
headers
,
cookies
,
px
,
thread_id
)
# except json.decoder.JSONDecodeError:
# print('json huoqu shibai ')
except
Exception
as
e
:
print
(
e
)
traceback
.
print_exc
()
def
run
():
brush_thread
=
2
while
True
:
print
(
f
'本次并发数 {brush_thread}'
)
# pool = ThreadPoolExecutor(max_workers=brush_thread)
# all_task = [pool.submit(exec, (i)) for i in range(brush_group)]
# brush_check = CONFIG['internal']['reverse']['making']['brush_check']
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment