18 lines
250 B
Python
18 lines
250 B
Python
|
import pymongo
|
||
|
|
||
|
container_name:str = "overleafmongo"
|
||
|
port: int = 27017
|
||
|
|
||
|
client = pymongo.MongoClient(container_name, port)
|
||
|
db = client.sharelatex
|
||
|
users = db.users
|
||
|
|
||
|
cursor = users.find()
|
||
|
|
||
|
for user in cursor:
|
||
|
print(user['email'])
|
||
|
|
||
|
client.close()
|
||
|
|
||
|
|