mongodb setup 1, Install mongodb local server Please refer to: https://docs.mongodb.com/manual/administration/install-community/ 2, Migrate data into your local mondb server put CSV files under repo './stocks_data' run python3 migrate.py 3, Basic db command are wrapped in db.py use find , filter to get your data