Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cloud_storage_bucket = 'pubsite_prod_rev_100311***********'
- report_to_download = 'acquisition/buyers_7d/buyers_7d_com.game.**********_channel.csv'
- private_key = json.loads(open(json_file).read())['private_key']
- credentials = ServiceAccountCredentials.from_json_keyfile_name(json_file,'https://www.googleapis.com/auth/devstorage.read_only')
- storage = build('storage', 'v1', credentials =credentials)
- a = storage.objects().get(bucket=cloud_storage_bucket,object=report_to_download).execute()
- kind
- id
- selfLink
- name
- bucket
- generation
- metageneration
- contentType
- timeCreated
- updated
- storageClass
- timeStorageClassUpdated
- size
- md5Hash
- mediaLink
- contentEncoding
- crc32c
- etag
Add Comment
Please, Sign In to add comment