from pymongo import MongoClient
#change url
mongo_url = 'mongodb://127.0.0.1:27017/'
client = MongoClient(mongo_url)

db = client["obsco"]

db.users.insert_many(
[
    {   "name" : "<NAME>",
        "id": 12345671,
        "groups" : [
            {'id':1,
            'members':1,
            'owner':1,
            'leaders':1},
            {'id':2,
            'members':0,
            'owner':0,
            'leaders':1},
            {'id':3,
            'members':0,
            'owner':1,
            'leaders':1},
            {'id':4,
            'members':0,
            'owner':0,
            'leaders':1},
            {'id':7,
            'members':0,
            'owner':1,
            'leaders':1}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 45,
        "superuser" : True,
        "title" : "Chairman",
        "skills":[{
             "id": 1,
             "value": 10
            },
            {
             "id": 4,
             "value": 8
            },
            {
             "id": 8,
             "value": 10
            },
            {
             "id": 6,
             "value": 6
            },
            {
             "id": 13,
             "value": 10
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 12345672,
        "groups" : [
            {'id':1,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':2,
            'members':0,
            'owner':1,
            'leaders':1},
            {'id':7,
            'members':0,
            'owner':0,
            'leaders':1}
        ],
        "email" : "<EMAIL>",
        "password": "<PASSWORD>",
        "age" : 45,
        "superuser" : False,
        "title" : "Instructor",
        "skills":[{
             "id": 4,
             "value": 10
            },
            {
             "id": 5,
             "value": 10
            },
            {
             "id": 8,
             "value": 7
            },
            {
             "id": 9,
             "value": 8
            },
            {
             "id": 10,
             "value": 7
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 12345673,
        "groups" : [
            {'id':1,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':4,
            'members':0,
            'owner':1,
            'leaders':1},
            {'id':7,
            'members':0,
            'owner':0,
            'leaders':1}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 45,
        "superuser" : False,
        "title" : "Instructor",
        "skills":[{
             "id": 6,
             "value": 10
            },
            {
             "id": 4,
             "value": 9
            },
            {
             "id": 7,
             "value": 10
            },
            {
             "id": 9,
             "value": 8
            },
            {
             "id": 12,
             "value": 7
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 21400537,
       "groups" : [
            {'id':3,
            'members':1,
            'owner':0,
            'leaders':1},
            {'id':5,
            'members':1,
            'owner':1,
            'leaders':1},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 25,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 1,
             "value": 7
            },
            {
             "id": 2,
             "value": 8
            },
            {
             "id": 3,
             "value": 9
            },
            {
             "id": 14,
             "value": 4
            },
            {
             "id": 13,
             "value": 7
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 21400538,
       "groups" : [
            {'id':3,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':5,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':6,
            'members':1,
            'owner':1,
            'leaders':1},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 25,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 1,
             "value": 8
            },
            {
             "id": 2,
             "value": 5
            },
            {
             "id": 9,
             "value": 7
            },
            {
             "id": 14,
             "value": 8
            },
            {
             "id": 13,
             "value": 6
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 21400539,
       "groups" : [
            {'id':3,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':5,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 25,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 1,
             "value": 4
            },
            {
             "id": 2,
             "value": 7
            },
            {
             "id": 9,
             "value": 7
            },
            {
             "id": 10,
             "value": 8
            },
            {
             "id": 13,
             "value": 5
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 21400540,
        "groups" : [
            {'id':3,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':6,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 25,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 1,
             "value": 6
            },
            {
             "id": 2,
             "value": 4
            },
            {
             "id": 9,
             "value": 8
            },
            {
             "id": 10,
             "value": 7
            },
            {
             "id": 14,
             "value": 9
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 21400541,
        "groups" : [
            {'id':3,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':6,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 25,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 1,
             "value": 5
            },
            {
             "id": 3,
             "value": 3
            },
            {
             "id": 9,
             "value": 8
            },
            {
             "id": 10,
             "value": 8
            },
            {
             "id": 13,
             "value": 6
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 21400517,
        "groups" : [
            {'id':4,
            'members':1,
            'owner':0,
            'leaders':1},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':11,
            'members':1,
            'owner':1,
            'leaders':1}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 22,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 1,
             "value": 5
            },
            {
             "id": 2,
             "value": 6
            },
            {
             "id": 10,
             "value": 5
            },
            {
             "id": 13,
             "value": 7
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 21400518,
        "groups" : [
            {'id':4,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':10,
            'members':1,
            'owner':1,
            'leaders':1},
            {'id':11,
            'members':1,
            'owner':0,
            'leaders':0}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 22,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 2,
             "value": 7
            },
            {
             "id": 4,
             "value": 8
            },
            {
             "id": 6,
             "value": 6
            },
            {
             "id": 9,
             "value": 7
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 21400519,
        "groups" : [
            {'id':4,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':10,
            'members':1,
            'owner':0,
            'leaders':0}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 22,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 4,
             "value": 6
            },
            {
             "id": 6,
             "value": 8
            },
            {
             "id": 9,
             "value": 5
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 21400527,
        "groups" : [
            {'id':2,
            'members':1,
            'owner':0,
            'leaders':1},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':8,
            'members':1,
            'owner':1,
            'leaders':1}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 24,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 2,
             "value": 5
            },
            {
             "id": 3,
             "value": 8
            },
            {
             "id": 12,
             "value": 6
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 21400528,
        "groups" : [
            {'id':2,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':8,
            'members':0,
            'owner':0,
            'leaders':1},
            {'id':9,
            'members':1,
            'owner':1,
            'leaders':1}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 24,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 2,
             "value": 4
            },
            {
             "id": 7,
             "value": 8
            },
            {
             "id": 8,
             "value": 5
            },
            {
             "id": 13,
             "value": 6
            },
            {
             "id": 14,
             "value": 8
            }
        ]

    },
    {   "name" : "<NAME>",
        "id": 21400529,
        "groups" : [
            {'id':2,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':8,
            'members':1,
            'owner':0,
            'leaders':0}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 24,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 3,
             "value": 2
            },
            {
             "id": 8,
             "value": 7
            },
            {
             "id": 10,
             "value": 5
            },
            {
             "id": 13,
             "value": 1
            }
        ]

    },
    {   "name" : "<NAME>",
        "id": 21400530,
        "groups" : [
            {'id':2,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':9,
            'members':1,
            'owner':0,
            'leaders':0}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 24,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 9,
             "value": 8
            },
            {
             "id": 11,
             "value": 2
            },
            {
             "id": 14,
             "value": 3
            }
        ]

    },
    {   "name" : "<NAME>",
        "id": 21400531,
        "groups" : [
            {'id':2,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':9,
            'members':1,
            'owner':0,
            'leaders':0}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 23,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 10,
             "value": 8
            },
            {
             "id": 11,
             "value": 4
            },
            {
             "id": 14,
             "value": 6
            }

        ]

    }

]
)
from pymongo import MongoClient
#change url
mongo_url = 'mongodb://127.0.0.1:27017/'
client = MongoClient(mongo_url)

db = client["obsco"]

db.users.insert_many(
[
    {   "name" : "<NAME>",
        "id": 12345671,
        "groups" : [
            {'id':1,
            'members':1,
            'owner':1,
            'leaders':1},
            {'id':2,
            'members':0,
            'owner':0,
            'leaders':1},
            {'id':3,
            'members':0,
            'owner':1,
            'leaders':1},
            {'id':4,
            'members':0,
            'owner':0,
            'leaders':1},
            {'id':7,
            'members':0,
            'owner':1,
            'leaders':1}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 45,
        "superuser" : True,
        "title" : "Chairman",
        "skills":[{
             "id": 1,
             "value": 10
            },
            {
             "id": 4,
             "value": 8
            },
            {
             "id": 8,
             "value": 10
            },
            {
             "id": 6,
             "value": 6
            },
            {
             "id": 13,
             "value": 10
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 12345672,
        "groups" : [
            {'id':1,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':2,
            'members':0,
            'owner':1,
            'leaders':1},
            {'id':7,
            'members':0,
            'owner':0,
            'leaders':1}
        ],
        "email" : "<EMAIL>",
        "password": "<PASSWORD>",
        "age" : 45,
        "superuser" : False,
        "title" : "Instructor",
        "skills":[{
             "id": 4,
             "value": 10
            },
            {
             "id": 5,
             "value": 10
            },
            {
             "id": 8,
             "value": 7
            },
            {
             "id": 9,
             "value": 8
            },
            {
             "id": 10,
             "value": 7
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 12345673,
        "groups" : [
            {'id':1,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':4,
            'members':0,
            'owner':1,
            'leaders':1},
            {'id':7,
            'members':0,
            'owner':0,
            'leaders':1}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 45,
        "superuser" : False,
        "title" : "Instructor",
        "skills":[{
             "id": 6,
             "value": 10
            },
            {
             "id": 4,
             "value": 9
            },
            {
             "id": 7,
             "value": 10
            },
            {
             "id": 9,
             "value": 8
            },
            {
             "id": 12,
             "value": 7
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 21400537,
       "groups" : [
            {'id':3,
            'members':1,
            'owner':0,
            'leaders':1},
            {'id':5,
            'members':1,
            'owner':1,
            'leaders':1},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 25,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 1,
             "value": 7
            },
            {
             "id": 2,
             "value": 8
            },
            {
             "id": 3,
             "value": 9
            },
            {
             "id": 14,
             "value": 4
            },
            {
             "id": 13,
             "value": 7
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 21400538,
       "groups" : [
            {'id':3,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':5,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':6,
            'members':1,
            'owner':1,
            'leaders':1},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 25,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 1,
             "value": 8
            },
            {
             "id": 2,
             "value": 5
            },
            {
             "id": 9,
             "value": 7
            },
            {
             "id": 14,
             "value": 8
            },
            {
             "id": 13,
             "value": 6
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 21400539,
       "groups" : [
            {'id':3,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':5,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 25,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 1,
             "value": 4
            },
            {
             "id": 2,
             "value": 7
            },
            {
             "id": 9,
             "value": 7
            },
            {
             "id": 10,
             "value": 8
            },
            {
             "id": 13,
             "value": 5
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 21400540,
        "groups" : [
            {'id':3,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':6,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 25,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 1,
             "value": 6
            },
            {
             "id": 2,
             "value": 4
            },
            {
             "id": 9,
             "value": 8
            },
            {
             "id": 10,
             "value": 7
            },
            {
             "id": 14,
             "value": 9
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 21400541,
        "groups" : [
            {'id':3,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':6,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 25,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 1,
             "value": 5
            },
            {
             "id": 3,
             "value": 3
            },
            {
             "id": 9,
             "value": 8
            },
            {
             "id": 10,
             "value": 8
            },
            {
             "id": 13,
             "value": 6
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 21400517,
        "groups" : [
            {'id':4,
            'members':1,
            'owner':0,
            'leaders':1},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':11,
            'members':1,
            'owner':1,
            'leaders':1}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 22,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 1,
             "value": 5
            },
            {
             "id": 2,
             "value": 6
            },
            {
             "id": 10,
             "value": 5
            },
            {
             "id": 13,
             "value": 7
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 21400518,
        "groups" : [
            {'id':4,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':10,
            'members':1,
            'owner':1,
            'leaders':1},
            {'id':11,
            'members':1,
            'owner':0,
            'leaders':0}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 22,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 2,
             "value": 7
            },
            {
             "id": 4,
             "value": 8
            },
            {
             "id": 6,
             "value": 6
            },
            {
             "id": 9,
             "value": 7
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 21400519,
        "groups" : [
            {'id':4,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':10,
            'members':1,
            'owner':0,
            'leaders':0}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 22,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 4,
             "value": 6
            },
            {
             "id": 6,
             "value": 8
            },
            {
             "id": 9,
             "value": 5
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 21400527,
        "groups" : [
            {'id':2,
            'members':1,
            'owner':0,
            'leaders':1},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':8,
            'members':1,
            'owner':1,
            'leaders':1}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 24,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 2,
             "value": 5
            },
            {
             "id": 3,
             "value": 8
            },
            {
             "id": 12,
             "value": 6
            }
        ]
    },
    {   "name" : "<NAME>",
        "id": 21400528,
        "groups" : [
            {'id':2,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':8,
            'members':0,
            'owner':0,
            'leaders':1},
            {'id':9,
            'members':1,
            'owner':1,
            'leaders':1}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 24,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 2,
             "value": 4
            },
            {
             "id": 7,
             "value": 8
            },
            {
             "id": 8,
             "value": 5
            },
            {
             "id": 13,
             "value": 6
            },
            {
             "id": 14,
             "value": 8
            }
        ]

    },
    {   "name" : "<NAME>",
        "id": 21400529,
        "groups" : [
            {'id':2,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':8,
            'members':1,
            'owner':0,
            'leaders':0}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 24,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 3,
             "value": 2
            },
            {
             "id": 8,
             "value": 7
            },
            {
             "id": 10,
             "value": 5
            },
            {
             "id": 13,
             "value": 1
            }
        ]

    },
    {   "name" : "<NAME>",
        "id": 21400530,
        "groups" : [
            {'id':2,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':9,
            'members':1,
            'owner':0,
            'leaders':0}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 24,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 9,
             "value": 8
            },
            {
             "id": 11,
             "value": 2
            },
            {
             "id": 14,
             "value": 3
            }
        ]

    },
    {   "name" : "<NAME>",
        "id": 21400531,
        "groups" : [
            {'id':2,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':7,
            'members':1,
            'owner':0,
            'leaders':0},
            {'id':9,
            'members':1,
            'owner':0,
            'leaders':0}
        ],
        "email" : "<EMAIL>",
        "password" : "<PASSWORD>",
        "age" : 23,
        "superuser" : False,
        "title" : "Student",
        "skills":[{
             "id": 10,
             "value": 8
            },
            {
             "id": 11,
             "value": 4
            },
            {
             "id": 14,
             "value": 6
            }

        ]

    }

]
)
#change url