title: How do I retrieve a path's data from firebase database using python?
body: <p>I have this firebase database structure </p>
  
  <p><a href="https://i.stack.imgur.com/wHsea.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wHsea.png" alt="enter image description here"></a></p>
  
  <p>I want to print out the inventory list(Inventory) for each ID under Businesses.<br>
  So I tried this code </p>
  
  <pre><code>db = firebase.database() 
  all_users = db.child("Businesses").get()
  for user in all_users.each():
      userid = user.key()
      inventorydb = db.child("Businesses").child(userid).child("Inventory")
      print(inventorydb)
  </code></pre>
  
  <p>but all I got is this </p>
  
  <pre><code>  &lt;pyrebase.pyrebase.Database object at 0x1091eada0&gt;
  </code></pre>
  
  <p>what am I doing wrong and how can I loop through each Business ID and print out their inventory?</p>