'How to get URL of all file in directory of firebase by python

i have a directory (wallpaper_app/Best_Wallpapers) in storage of firebase and it have some files iwant URL's of all file

but when i try to get list_files by

image = storage.child('wallpaper_app/Best_Wallpapers/').list_files()

iam facing error

  File "d:\Project\wallpaper-app-kivy\temp.py", line 33, in <module>
    imageUrl = storage.list_files()
  File "D:\Project\wallpaper-app-kivy\wallpaper-app\lib\site-packages\pyrebase\pyrebase.py", line 507, in list_files
    return self.bucket.list_blobs()
AttributeError: 'Storage' object has no attribute 'bucket'


Solution 1:[1]

you have to get a Service accounts got to (Project settings) then (Service accounts) in (Firebase Admin SDK) scroll down to make new private key downlode file you have to past its path of file to config dic by key of "serviceAccount"

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Abdul Wahab Rana