??selenium??????????.py 文件源码

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

项目:python3_crawl 作者: princewen 项目源码 文件源码
def search_mongodb(url, times=0):
    """???????????mongodb?"""
    try:
        ret = db.weixin.find_one({'url': url})
        if not ret:
            return True
        else:
            return False
    except AutoReconnect:
        times += 1
        if times <= 5:
            print('?????????????mongodb')
            search_mongodb(url, times)
        else:
            print('mongodb????')
            return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号