Skip to content

Instantly share code, notes, and snippets.

@smbrown
Created November 5, 2010 19:20
Show Gist options
  • Select an option

  • Save smbrown/664633 to your computer and use it in GitHub Desktop.

Select an option

Save smbrown/664633 to your computer and use it in GitHub Desktop.
import cloudfiles
conn = cloudfiles.get_connection('johnsmith', '123477777889000')
cont = cloudfiles.connection.Connection.get_container(conn,'.CDN_ACCESS_LOGS')
for obj in cont.get_objects():
obj.save_to_filename(obj.etag + '.gz')
print obj.etag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment