This commit is contained in:
parent
43ece45336
commit
32d12fc5e8
|
@ -9,7 +9,7 @@ class S:
|
||||||
db="media",
|
db="media",
|
||||||
collection="video"
|
collection="video"
|
||||||
)
|
)
|
||||||
print(self.col_video)
|
# print(self.col_video)
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
self.col_video.close()
|
self.col_video.close()
|
||||||
|
@ -17,6 +17,7 @@ class S:
|
||||||
def proc(self):
|
def proc(self):
|
||||||
q = {}
|
q = {}
|
||||||
docs = self.col_video.find(q)
|
docs = self.col_video.find(q)
|
||||||
|
print(len(docs))
|
||||||
df = pd.DataFrame(docs)
|
df = pd.DataFrame(docs)
|
||||||
df.to_csv("media.csv")
|
df.to_csv("media.csv")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue