Beispiel #1
0
 def __init__(self):
     #url链接管理器
     self.urls = u.UrlManager()
     #下载器
     self.downloader = d.HtmlDownLoader()
     #解析器
     self.parser = p.HtmlParser()
Beispiel #2
0
 def __init__(self):
     #url链接管理器
     self.urls = u.UrlManager()
     #下载器
     self.downloader = d.HtmlDownLoader()
     #解析器
     self.parser = p.HtmlParser()
     #存储到ES
     self.output = o.OutputManager('recruit_index', 'recruit')
Beispiel #3
0
def buildImageUrl(path):
    return UrlManager.buildImageUrl(path)
Beispiel #4
0
def build_static_url(path):
    return UrlManager.build_static_url(path)
Beispiel #5
0
def build_url(path):
    return UrlManager.build_url(path)