pipelines.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:WebHubBot 作者: xiyouMc 项目源码 文件源码
def __init__(self):
        clinet = pymongo.MongoClient("localhost", 27017)
        db = clinet["PornHub"]
        self.PhRes = db["PhRes"]
        idx = IndexModel([('link_url', ASCENDING)], unique=True)
        self.PhRes.create_indexes([idx])
        # if your existing DB has duplicate records, refer to:
        # https://stackoverflow.com/questions/35707496/remove-duplicate-in-mongodb/35711737
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号