Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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))
Ejemplo n.º 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
Ejemplo n.º 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)