Exemple #1
0
 def match_weibo_code(self, match):
     mongo_client = MongoClient(mongo_collection="WEIBOBASICINFO")
     db, collection_list = mongo_client.client_to_mongodb()
     collection = mongo_client.get_check_collection(db, collection_list)
     result = mongo_client.match_from_mongo(collection=collection,
                                            match=match,
                                            output="WEIBO_CODE_")
     return result