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
b506d248
Commit
b506d248
authored
Aug 14, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7422ad72
Pipeline
#470
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
main.py
src/main.py
+10
-0
No files found.
src/main.py
View file @
b506d248
...
...
@@ -19,6 +19,11 @@ root_logger.handlers = []
if
not
pathlib
.
Path
(
'nacos-data/snapshot/'
)
.
exists
():
pathlib
.
Path
(
'nacos-data/snapshot/'
)
.
mkdir
(
parents
=
True
)
def
check_pull
():
get_url
=
'https://ymx-lcc.unififi.com/header/task/pull/cookieY4?brush_name=test'
r
=
requests
.
get
(
get_url
)
return
r
.
json
()
def
get_proxy
():
get_proxy_url
=
'http://ymx-lcc.unififi.com/proxy/get-proxy'
r
=
requests
.
post
(
get_proxy_url
,
json
=
{
...
...
@@ -61,6 +66,10 @@ def run():
while
True
:
print
(
f
'本次并发数 {brush_thread}'
)
pull
=
check_pull
()
if
pull
.
get
(
'status'
)
==
1
:
time
.
sleep
(
10
)
continue
# 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']
...
...
@@ -81,6 +90,7 @@ def run():
objs
[
n
]
=
task
if
__name__
==
'__main__'
:
run
()
...
...
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