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