This commit is contained in:
Jing Ling
2020-08-22 01:25:57 +08:00
parent 6af40c553e
commit 786df87bdc
7 changed files with 35 additions and 47 deletions
+4 -7
View File
@@ -4,15 +4,12 @@
from common.check import Check
class CheckRobots(Check):
"""
检查sitemap收集子域名
"""
class Sitemap(Check):
def __init__(self, domain):
Check.__init__(self)
self.domain = domain
self.module = 'Check'
self.source = 'Sitemap'
self.module = 'check'
self.source = 'SitemapCheck'
def check(self):
"""
@@ -39,7 +36,7 @@ def run(domain):
:param str domain: 域名
"""
check = CheckRobots(domain)
check = Sitemap(domain)
check.run()