Skip to content

Instantly share code, notes, and snippets.

View senaps's full-sized avatar

maysam senaps senaps

View GitHub Profile
@senaps
senaps / fix_location.py
Created April 23, 2017 12:54
simple code to edit geo location and add a simple field to 20000 mongodb documents!
print " starting the thing!"
import time
from pymongo import MongoClient
client = MongoClient('localhost',27017)
db = client['Pakar']
collection = db.person