Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxScanck
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
yaozheng
wxScanck
Commits
089697a4
Commit
089697a4
authored
Apr 15, 2022
by
TesterYao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9fdb4122
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ssp.py
ssp.py
+1
-1
wx-starter.py
wx-starter.py
+2
-2
No files found.
ssp.py
View file @
089697a4
...
@@ -36,7 +36,7 @@ class SSP:
...
@@ -36,7 +36,7 @@ class SSP:
r
=
self
.
session
.
get
(
url
=
self
.
host
+
self
.
block_list_url
+
b_url
.
split
(
'https://'
)[
1
]
+
'&resulting=1'
)
r
=
self
.
session
.
get
(
url
=
self
.
host
+
self
.
block_list_url
+
b_url
.
split
(
'https://'
)[
1
]
+
'&resulting=1'
)
else
:
else
:
r
=
self
.
session
.
get
(
url
=
self
.
host
+
self
.
block_list_url
+
b_url
+
'&resulting=1'
)
r
=
self
.
session
.
get
(
url
=
self
.
host
+
self
.
block_list_url
+
b_url
+
'&resulting=1'
)
LOG
.
info
(
'上报结果:'
+
r
.
text
)
#
LOG.info('上报结果:' + r.text)
if
r
.
status_code
==
200
and
r
.
json
()
.
get
(
'desc'
)
==
"成功"
:
if
r
.
status_code
==
200
and
r
.
json
()
.
get
(
'desc'
)
==
"成功"
:
LOG
.
info
(
'上报成功:'
+
r
.
text
)
LOG
.
info
(
'上报成功:'
+
r
.
text
)
else
:
else
:
...
...
wx-starter.py
View file @
089697a4
...
@@ -21,12 +21,12 @@ def runner(channel):
...
@@ -21,12 +21,12 @@ def runner(channel):
text
(
i
)
text
(
i
)
else
:
else
:
text
(
'https://'
+
i
)
text
(
'https://'
+
i
)
sleep
(
0.
77
)
sleep
(
0.
5
)
LOG
.
info
(
'点击确定按钮'
)
LOG
.
info
(
'点击确定按钮'
)
# touch(Template(r"tpl1648539686506.png", record_pos=(-0.263, -0.665), resolution=(1440, 2560)))
# touch(Template(r"tpl1648539686506.png", record_pos=(-0.263, -0.665), resolution=(1440, 2560)))
poco
(
name
=
'确定'
)
.
click
()
poco
(
name
=
'确定'
)
.
click
()
LOG
.
info
(
'正在巡查:'
+
i
)
LOG
.
info
(
'正在巡查:'
+
i
)
sleep
(
2
)
sleep
(
1.5
)
try
:
try
:
if
poco
(
name
=
"已停止访问该网页"
)
.
exists
():
if
poco
(
name
=
"已停止访问该网页"
)
.
exists
():
LOG
.
info
(
'巡查结束,域名被封:
%
s'
%
i
)
LOG
.
info
(
'巡查结束,域名被封:
%
s'
%
i
)
...
...
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