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
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
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
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))
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
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)