引入不了文件
#coding:utf-8 from baike_spider import url_manager class SpadierMain(object): def_init_(self): self.urls = url_manager.UrlManager() self.downloader = html_downloader.HtmlDownloader() self.parser = html_parser.Htmlparser() self.outputer = html_outputer.HtmlOutputer() def craw(self, root_url): pass if _main_=="_main_": root_url ="http://baike.baidu.com/view/21087.htm" obj_spider = SpadierMain() obj_spider.craw(root_url)
只能引入urls 其余都不能引入