Commit 089697a4 authored by TesterYao's avatar TesterYao

1

parent 9fdb4122
......@@ -36,7 +36,7 @@ class SSP:
r = self.session.get(url=self.host+self.block_list_url+b_url.split('https://')[1]+'&resulting=1')
else:
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') == "成功":
LOG.info('上报成功:'+ r.text)
else:
......
......@@ -21,12 +21,12 @@ def runner(channel):
text(i)
else:
text('https://'+i)
sleep(0.77)
sleep(0.5)
LOG.info('点击确定按钮')
# touch(Template(r"tpl1648539686506.png", record_pos=(-0.263, -0.665), resolution=(1440, 2560)))
poco(name='确定').click()
LOG.info('正在巡查:' + i)
sleep(2)
sleep(1.5)
try:
if poco(name="已停止访问该网页").exists():
LOG.info('巡查结束,域名被封:%s' % i)
......
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