使用pymongo加载数据到jupyter笔记本并获取收藏夹列表

时间:2019-06-14 01:18:26

标签: pandas pymongo

我正在尝试使用pymongo连接mongo DB。

如何获取收藏夹列表?

import pymongo
from pymongo import MongoClient
import pandas as pd
import json
uri = "mongodb://XXX:abcd@dev-mongo.XXX.com/YYY?authSource=admin&authMechanism=SCRAM-SHA-1"
client = MongoClient(uri)


db = client['database_name']
collection=db['collection_name']
coll_list = db.collection_names()

1 个答案:

答案 0 :(得分:0)

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Process.Start("7z.exe","-e" Textbox1.Text + Combobox1.Text )
End Sub