コード例 #1
0
ファイル: stats.py プロジェクト: prashanth-thipparthi/test
from WatchDogs_MongoWrapper import MongoWrapper

if __name__ == "__main__":
    mongo = MongoWrapper()
    logger = mongo.get_logger('Tweets Stats')
    # logger.info('# of companies in Companies in the database: '+str(mongo.print_statistics('Stocks')))
    # logger.info('# of companies in Tweets in the database: '+str(mongo.print_statistics('Tweets')))
    print('# of companies in Tweets in the database: ' + str(mongo.print_statistics('Tweets')))

コード例 #2
0
from WatchDogs_MongoWrapper import MongoWrapper
if __name__ == "__main__":
    mongo = MongoWrapper()
    logger = mongo.get_logger('Tweets Stats')
    logger.info('# of companies in Companies in the database: '+str(mongo.print_statistics('Stocks')))
    logger.info('# of companies in Tweets in the database: '+str(mongo.print_statistics('Tweets')))

コード例 #3
0
from WatchDogs_MongoWrapper import MongoWrapper
if __name__ == "__main__":
    mongo = MongoWrapper()
    logger = mongo.get_logger('Tweets Stats')
    logger.info('# of companies in Companies in the database: ' +
                str(mongo.print_statistics('Stocks')))
    logger.info('# of companies in Tweets in the database: ' +
                str(mongo.print_statistics('Tweets')))