def Butian(self):
for num in range(1,10):
request = urllib2.Request(self.botianurl+str(num))
content = urllib2.urlopen(request).read()
rule = re.compile(r'<a\shref="/vul/info/qid/QTVA-\d{4}-\d{6}">.*杭州.*</a>') #匹配公司name特定字符串
for line in re.findall(rule,content):
value = re.sub(r'(<a\shref="/vul/info/qid/QTVA-\d{4}-\d{6}">)|(</a>)','',line).strip()
key = line[9:39]
self.result[key] = value
#def Wooyun(self):
#def Vulbox(self):
def Send_Mail(self,content):
host = 'smtp.163.com'
port = 25