back-end/threats_monitoring/botscout_summer.py
def connect_to_mongodb():
    """ This function implements the connection to the mongoDb
        :returns
            connection  (MongoClient)   a MongoClient object to handle the connection
    """

    # connect to database
    connection = MongoClient('XXX.XXX.XXX.XXX', 27017)
    db = connection.admin
    db.authenticate('xxxxxx', 'xxxXXXxxxXX')

    return db
 This function implements the connection to the mongoDb
        :returns
            connection  (MongoClient)   a MongoClient object to handle the connection
    
This function implements the connection to the mongoDb
:returns
connection  (MongoClient)   a MongoClient object to handle the connection
This function implements the connection to the mongoDb : returns connection ( MongoClient ) a MongoClient object to handle the connection
def connect_to_mongodb():
    connection = MongoClient('XXX.XXX.XXX.XXX', 27017)
    db = connection.admin
    db.authenticate('xxxxxx', 'xxxXXXxxxXX')
    return db
def connect_to_mongodb ( ) : connection = MongoClient ( 'XXX.XXX.XXX.XXX' , 27017 ) db = connection . admin db . authenticate ( 'xxxxxx' , 'xxxXXXxxxXX' ) return db
This function implements the connection to the mongoDb
:returns
connection  (MongoClient)   a MongoClient object to handle the connection
This function implements the connection to the mongoDb : returns connection ( MongoClient ) a MongoClient object to handle the connection
""" This function implements the connection to the mongoDb
        :returns
            connection  (MongoClient)   a MongoClient object to handle the connection
    """ # connect to database
