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
de5ddfcb
Commit
de5ddfcb
authored
Aug 05, 2022
by
TesterYao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
488aa207
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
wx-cli-ck.py
wx-cli-ck.py
+17
-8
No files found.
wx-cli-ck.py
View file @
de5ddfcb
...
@@ -41,19 +41,28 @@ def check_domain(check_url,i=0):
...
@@ -41,19 +41,28 @@ def check_domain(check_url,i=0):
else
:
else
:
LOG
.
error
(
'微信域名巡查脚本,执行巡查时出错,请及时处理!!!'
)
LOG
.
error
(
'微信域名巡查脚本,执行巡查时出错,请及时处理!!!'
)
def
get_pg_list
():
pg_url
=
'https://engine.tuia.cn/apollo/getIdMapStrByKeyStr?keyStr=wx.ad.land'
r
=
requests
.
get
(
url
=
pg_url
)
if
r
.
ok
:
return
r
.
text
.
split
(
','
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
tui
=
Tui
()
base_url
=
'http://mp.weixinbridge.com/mp/wapredirect?url='
# 微信官方接口,可用于域名巡查,后面拼接上需要巡查的域名或链接
base_url
=
'http://mp.weixinbridge.com/mp/wapredirect?url='
# 微信官方接口,可用于域名巡查,后面拼接上需要巡查的域名或链接
session
=
requests
.
session
()
session
=
requests
.
session
()
headers
=
{
'User-Agent'
:
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36'
}
headers
=
{
'User-Agent'
:
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36'
}
ck_url_list
=
[
'web.sgwd188.com/landingPage/getGiftV2022804_01_29_new_jsapi_q?channelCode=u155ha'
,
'web.sgwd188.com/'
]
while
True
:
while
True
:
for
ck_url
in
ck_url_list
:
try
:
check_domain
(
ck_url
)
ck_url_list
=
get_pg_list
()
sleep
(
2
)
for
ck_url
in
ck_url_list
:
sleep
(
10
)
check_domain
(
ck_url
)
sleep
(
2
)
sleep
(
10
)
except
:
sleep
(
10
)
pass
...
...
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