Commit de5ddfcb authored by TesterYao's avatar TesterYao

1

parent 488aa207
......@@ -41,19 +41,28 @@ def check_domain(check_url,i=0):
else:
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__':
tui = Tui()
base_url = 'http://mp.weixinbridge.com/mp/wapredirect?url=' # 微信官方接口,可用于域名巡查,后面拼接上需要巡查的域名或链接
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'}
ck_url_list = ['web.sgwd188.com/landingPage/getGiftV2022804_01_29_new_jsapi_q?channelCode=u155ha',
'web.sgwd188.com/'
]
while True:
for ck_url in ck_url_list:
check_domain(ck_url)
sleep(2)
sleep(10)
try:
ck_url_list = get_pg_list()
for ck_url in ck_url_list:
check_domain(ck_url)
sleep(2)
sleep(10)
except:
sleep(10)
pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment