Exemplo n.º 1
0
 def __init__(self):
     #第一個是模塊的名字,第二個是模塊內部對象的名字
     #html_download.HtmlDownload()
     self.html_download = html_download3.HtmlDownload()
     self.html_parser = HtmlParse.HtmlParse()
     self.urlmanage = UrlManage.UrlManage()
     self.html_output = html_outputer.HtmlOutputer()
Exemplo n.º 2
0
 def run(self, http_address):
     self.is_running = True
     analyse = HtmlParse(http_address)
     if (self.is_running):
         analyse.get_keywords()
     else:
         return 0
     if (self.is_running):
         analyse.get_tag_hs()
     else:
         return 0
     if (self.is_running):
         analyse.get_tag_p()
     else:
         return 0
     return 1