def insert_sogou_search_result(self, result):
    '\n        保存搜狗搜索信息\n        :param results: 结果数组\n        '
    ctime = get_current_time()
    find_obj = {'id': result['id'], 'is_valid': 1}
    search_item = self.sogou_search_col.find_one(find_obj)
    print(search_item)
    new_result = result
    if (not search_item):
        new_result['c_time'] = ctime
        new_result['m_time'] = ctime
        new_result['is_valid'] = 1
        self.sogou_search_col.insert_one(new_result)
        return
    new_result['m_time'] = ctime
    self.sogou_search_col.update_one(find_obj, {'$set': new_result})
保存搜狗搜索信息
:param results: 结果数组
def insert_sogou_search_result(self, result):
    '\n        保存搜狗搜索信息\n        :param results: 结果数组\n        '
    ctime = get_current_time()
    find_obj = {'id': result['id'], 'is_valid': 1}
    search_item = self.sogou_search_col.find_one(find_obj)
    print(search_item)
    new_result = result
    if (not search_item):
        new_result['c_time'] = ctime
        new_result['m_time'] = ctime
        new_result['is_valid'] = 1
        self.sogou_search_col.insert_one(new_result)
        return
    new_result['m_time'] = ctime
    self.sogou_search_col.update_one(find_obj, {'$set': new_result})