示例#1
0
文件: main.py 项目: Superjom/swin-2
# -*- coding: utf-8 -*-
from  hitindexer import HitIndexer
from doclist import DocList
from _indexer import Indexer
from htmldb import ArrangePageDB


#将爬取的网页进行排序
#以便于网页站点的判断
'''
arrange_page_db = ArrangePageDB()
arrange_page_db.moveNewRecord()
arrange_page_db.save()

hitindexer = HitIndexer()
hitindexer.run()

doclist = DocList()
doclist.run()
'''

indexer = Indexer()
indexer.run()
示例#2
0
文件: views.py 项目: Superjom/swin-2
 def indexDoc(self):
     from _indexer import Indexer
     indexer = Indexer()
     indexer.run()