Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import config
- import pandas as pd
- from pymongo import MongoClient
- host = config.mongo_host
- username = config.mongo_username
- password = config.mongo_password
- client = MongoClient(host)
- print(client)
- # Getting a database
- db = client['resume']
- print(db)
- # Getting a collection
- coll = db.resparse
- print(coll.count())
Add Comment
Please, Sign In to add comment