Exemple #1
0
def check_end():
    for k, v in w9_hash_pycode.iteritems():
        try:
            pluginObj = v["pluginObj"]
            service = v["service"]
            if(service == "spider_end"):
                pluginObj.audit()
        except Exception as errinfo:
            print k," ",errinfo
Exemple #2
0
def check(url,html = ''):
    for k, v in w9_hash_pycode.iteritems():
        try:
            pluginObj = v["pluginObj"]
            service = v["service"]
            if(service == "spider_file"):
                pluginObj.audit(url,html)
        except Exception as errinfo:
            print "[xxx] spider:",errinfo
Exemple #3
0
def check_end():
    for k, v in w9_hash_pycode.iteritems():
        try:
            pluginObj = v["pluginObj"]
            service = v["service"]
            if(service == "spider_end"):
                pluginObj.audit()
        except:
            pass
Exemple #4
0
def check(url,html = ''):
    for k, v in w9_hash_pycode.iteritems():
        try:
            pluginObj = v["pluginObj"]
            service = v["service"]
            if(service == "spider_file"):
                pluginObj.audit(url,html)
        except Exception as errinfo:
            logger.error("spider plugin:%s errinfo:%s url:%s"%(k,errinfo,url))
Exemple #5
0
def check_end():
    for k, v in w9_hash_pycode.iteritems():
        try:
            pluginObj = v["pluginObj"]
            service = v["service"]
            if(service == "spider_end"):
                pluginObj.audit()
        except Exception as errinfo:
            print k," ",errinfo
Exemple #6
0
def check(url,html = ''):
    for k, v in w9_hash_pycode.iteritems():
        try:
            pluginObj = v["pluginObj"]
            service = v["service"]
            if(service == "spider_file"):
                pluginObj.audit(url,html)
        except Exception as errinfo:
            print "[xxx] spider plugin:%s errinfo:%s Exception:%s url:%s"%(k,errinfo,Exception,url)