idimi
Joined: 14/10/2015 15:54:32
Messages: 1
Offline
|
Hello!
I am trying to import a geoname db (let's say cities5000.txt) to a database in mongo. I have searched and found that in order to do so i have to convert the .txt file into .json format. The problem is that using this script: http://stackoverflow.com/questions/13816335/python-csv-to-json-parser-add-quotes-to-output i end up with a json file which is not accepted by mongo. Do you know another way to transform this txt file to json? Or maybe an exisiting implementation of another script or ready to use .json file? Of course if there is another way to do it i'd be glad to hear about it. Thank you so much in advance,
ID
|