def process_item(self, item, spider):
    client = pymongo.MongoClient(host='127.0.0.1', port=27017)
    db = client['job']
    collection = db['position2']
    collection.insert(dict(item))
    client.close()
    return item
def process_item(self, item, spider):
    client = pymongo.MongoClient(host='127.0.0.1', port=27017)
    db = client['job']
    collection = db['position2']
    collection.insert(dict(item))
    client.close()
    return item