Issue 20870: how to import json file in mongodb using pymongo (original) (raw)
Issue20870
Created on 2014-03-08 10:19 by pramod.jadhav, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Messages (2) | ||
---|---|---|
msg212926 - (view) | Author: Pramod Jadhav (pramod.jadhav) | Date: 2014-03-08 10:22 |
import sys import envoy from bson import json_util # Comes with pymongo from pymongo import MongoClient from pprint import pprint import json client = pymongo.MongoClient('mongodb://user:user123@ds033499.mongolab.com:33499/enron') r = pymongo.MongoClient('mongoimport -h ds033499.mongolab.com:33499 -p 33499 -d enron -c spectrumplus -u user -p user123 --file C:/Users/sachin/Documents/IPython /ch06-mailboxes/data/enron.mbox.json') print 'json import sucessfully' | ||
msg212933 - (view) | Author: R. David Murray (r.david.murray) * ![]() |
Date: 2014-03-08 14:22 |
This tracker is for reporting bugs in CPython and the Python standard library. pymongo is not part of the standard library. Please use the pymongo support channels for your question. (Their help channels...it does not look like this is a bug report.) You could also try try the pyhon-list mailing list. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:59 | admin | set | github: 65069 |
2014-03-08 14:22:22 | r.david.murray | set | status: open -> closedversions: + 3rd party, - Python 2.7nosy: + r.david.murraymessages: + resolution: not a bugstage: resolved |
2014-03-08 10:22:54 | pramod.jadhav | set | messages: + |
2014-03-08 10:19:11 | pramod.jadhav | create |