title: How to download a folder from firebase with python?
body: <p>i want to download all images in a firebase storage folder. I tried to follow the instructions of this post <a href="https://stackoverflow.com/questions/63206095/how-to-download-an-entire-folder-in-firebase-storge-using-python">How to download an entire folder in firebase storge using python?</a> . But no success. I am getting error like below, can someone help me, Thanks for reading this post. this is the error i got <code>AttributeError: 'Storage' object has no attribute 'bucket'</code>.
  this is the folder in my firebase storage: <a href="https://i.stack.imgur.com/1wR0a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1wR0a.png" alt="enter image description here" /></a></p>
  <pre><code>import pyrebase
  
  config = {
  
    &quot;apiKey&quot;: &quot;&quot;,
    &quot;authDomain&quot;: &quot;&quot;,
    &quot;projectId&quot;: &quot;&quot;,
      &quot;databaseURL&quot;: &quot;&quot;,
    &quot;storageBucket&quot;: &quot;&quot;,
    &quot;messagingSenderId&quot;: &quot;&quot;,
    &quot;appId&quot;: &quot;&quot;,
  
  }
  firebase=pyrebase.initialize_app(config)
  storage = firebase.storage()
  
  path = &quot;data&quot;
  
  ab=str(1)    
  all_files = storage.child(&quot;images&quot;).list_files()
  for file in all_files:             
      try:
          print(file.name)
          z=storage.child(file.name).get_url(None)
          storage.child(file.name).download(&quot;&quot;+path+&quot;/&quot;+ab+&quot;.png&quot;)
          x=int(ab)
          ab=str(x+1)
  
  
      except:
          print('Download Failed')
  </code></pre>