from pyphanfare.connection import PhanfareConnection def list_all(): filesize = 0 c = PhanfareConnection() c.authenticate() albums = c.account.get_albums() for album in albums: print album.name images = album.get_images(external_links=True, num_images=2000) for i in range(0, len(images)): for r in images[i].renditions: if r['rendition_type'] == 'Full': typ = 'I' if images[i].is_video: typ = 'V' print '%s - %s - %s - %s' % (i, typ, str(images[i].image_date), r['url']) filesize += r['filesize'] print '' print 'Total in storage at Phanfare: %s' % filesize list_all()