title: How to print MongoDB databases in Python
body: <p>I have a MongoDB database that is storing data from ROS topics that my robot is logging. I am trying to print the data in MongoDB by using the following python script:</p>
  
  <pre><code>from pymongo import MongoClient
  client = MongoClient('cpr-j100-0101', 62345)
  db1 = client.front_scan
  db2 = client.cmd_vel
  db3 = client.odometry_filtered
  print db1
  print db2
  print db3
  </code></pre>
  
  <p>but I dont get the result I want when I run this script. I have attached the result of running this script as an image. Instead of this, I would like to actually be able to access the data within mongoDB.<a href="https://i.stack.imgur.com/QCZIc.png" rel="nofollow noreferrer">enter image description here</a></p>