Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pymongo [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate

import certifi
import pymongo
conn = pymongo.MongoClient(
    'mongodb+srv://<username>:<password>@cluster0.eknio.mongodb.net/<dbName>?retryWrites=true&w=majority', tlsCAFile=certifi.where())
db = conn['<dbName>']
col = db.<collectionName>
array = list(col.find())

print(array)
Comment

PREVIOUS NEXT
Code Example
Python :: dictionary with double key python 
Python :: Write a Python program to get the Python version you are using. 
Python :: python opencv imresize 
Python :: python range in reverse order 
Python :: python read in integers separated by spaces 
Python :: tensorflow_version 
Python :: print in binary python 
Python :: django.db.utils.ProgrammingError: relation "users" does not exist in django 3.0 
Python :: python curve fitting 
Python :: django migrate fake zero 
Python :: add system path python jupytre 
Python :: limit for loop python 
Python :: how to insert a variable into a string python 
Python :: pandas dataframe 
Python :: python to excel 
Python :: roman to integer python 
Python :: django app 
Python :: python f string 
Python :: read file into list python 
Python :: how to get current latitude and longitude in python 
Python :: calculate the same value in list i python 
Python :: numpy array length 
Python :: python validate url 
Python :: how to fix Crypto.Cipher could not be resolved in python 
Python :: python cross validation 
Python :: pandas drop row from a list of value 
Python :: python tkinter colored line 
Python :: # How to Prints the current working directory in python 
Python :: print all unique values in a dictionary 
Python :: seaborn correlation heatmap 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =