Beispiel #1
0
    def __init__(self, root_url):

        self.url = root_url

        self.urls = url_manager.UrlManager()
        self.downloader = html_downloader.HtmlDownloader()
        self.parser = html_parser.HtmlParser()
        self.outputer = html_output.HtmlOutputer()
Beispiel #2
0
 def __init__(self):
     self.urls = url_manager.UrlManager()
     self.downloader = html_downloader.HtmlDownloader()
     self.parser = html_parser.HtmlParser()
     self.outputer = html_output.HtmlOutputer()
     self.dao = dao.Dao()
Beispiel #3
0
 def __init__(self):
     # 实例化属性
     self.urls = url_mananger.UrlManager()
     self.downloader = html_download.HtmlDownloader()
     self.parser = html_parser.HtmlParser()
     self.outputer = html_output.HtmlOutputer()
 def __init__(self):
     self.urls = url_manager.UrlManager()  #url管理器
     self.downloader = html_download.HtmlDownloader()  #downloader下载器
     self.parser = html_parser.HtmlParser()  #爬虫解析器
     self.outputer = html_output.HtmlOutputer()  #网页输出器
Beispiel #5
0
 def __init__(self):
     # 实例化:url管理器,网页下载器,网页解析器,数据输出
     self.urls = Url_Manager.UrlManager()
     self.parser = parser_html.Htmlparser()
     self.download = download.download()
     self.outputer = html_output.HtmlOutputer()
Beispiel #6
0
 def __init__(self, html_downloader, html_outputer):
     self.urls = url_manager.UrlManager()
     self.downloader = html_downloader.HtmlDowmder()
     self.parser = html_parser.HtmlPaeser()
     self.outputer = html_output.HtmlOutputer()
Beispiel #7
0
 def __init__(self):
     self.downloader = html_downloader.HtmlDownloader()
     self.parser = html_parser.HtmlParser()
     self.outputer = html_output.HtmlOutputer()
Beispiel #8
0
 def __init__(self):
     self.urls = url_manager.UrlMannager()  #url管理器
     self.downloader = html_downloader.HtmlDownloader()  #网页下载
     self.parser = html_parser.HtmlParser()  #解析器
     self.outputer = html_output.HtmlOutputer()  #输出结果