Skip to content

Instantly share code, notes, and snippets.

@MisguidedGhostt
Last active September 22, 2019 07:22
Connecting mongoDB with Python.
from pymongo import MongoClient
client= MongoClient('localhost', 27017)
db = client['programadores']
collection = db['empleados']
documents = collection.find()
for documents in documents:
print documents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment