def __init__(self):
    '初始化\n        初始化 mongo db\n        '
    mongo_uri = ('mongodb://%s:%s@%s:%s' % (MONGO_CONFIG['user'], MONGO_CONFIG['pwd'], MONGO_CONFIG['host'], MONGO_CONFIG['port']))
    self.mongo = MongoClient(mongo_uri)
    self.sogou_db = self.mongo['sogou_dev']
    self.sogou_search_col = self.sogou_db['sogou_search_results']
初始化
初始化 mongo db
def __init__(self):
    '初始化\n        初始化 mongo db\n        '
    mongo_uri = ('mongodb://%s:%s@%s:%s' % (MONGO_CONFIG['user'], MONGO_CONFIG['pwd'], MONGO_CONFIG['host'], MONGO_CONFIG['port']))
    self.mongo = MongoClient(mongo_uri)
    self.sogou_db = self.mongo['sogou_dev']
    self.sogou_search_col = self.sogou_db['sogou_search_results']