I'm trying to make a query to MongoDB from Python, I'm just getting into these technologies.
I have this code
import pymongo
from pymongo import MongoClient
client = MongoClient()
db = client.crawler.users
res = db.find()
print( res )
I get this message:
<pymongo.cursor.Cursor object at 0x7f438d574cd0>
Process exited with code: 0
I was expecting a response like that since from the Mongo console if you execute it:
> db.users.find()
{ "_id" : ObjectId("5b3fd50706dd45b669417454"), "NAME" : "FOO", "LAST_NAME" : "BAR" }
{ "_id" : ObjectId("5b3fdd2e613d0b159da70742"), "NAME" : "POO", "LAST_NAME" : "MAR" }
I appreciate your patience