### download files from googole cloud Storage

from google.cloud import storage

### set #####
bucket_name = 'project-187007.appspot.com'
destination_blob_name = 'ig_picture/11024107_838713289520944_1923731223_n.jpg'
download_file_name = '/Users/apple/nicole/IXQ/IXQ_code/1223.jpg'
#############

storage_client = storage.Client()
bucket = storage_client.get_bucket(bucket_name)

blob = bucket.blob(destination_blob_name)
blob.download_to_filename(download_file_name)

print(blob)

7c128a29ba8d2a2837bac02fbdb3002839be8d27
<mask token>

<mask token>
blob.download_to_filename(download_file_name)
print(blob)

<mask token>
bucket_name = 'project-187007.appspot.com'
destination_blob_name = 'ig_picture/11024107_838713289520944_1923731223_n.jpg'
download_file_name = '/Users/apple/nicole/IXQ/IXQ_code/1223.jpg'
storage_client = storage.Client()
bucket = storage_client.get_bucket(bucket_name)
blob = bucket.blob(destination_blob_name)
blob.download_to_filename(download_file_name)
print(blob)

from google.cloud import storage
bucket_name = 'project-187007.appspot.com'
destination_blob_name = 'ig_picture/11024107_838713289520944_1923731223_n.jpg'
download_file_name = '/Users/apple/nicole/IXQ/IXQ_code/1223.jpg'
storage_client = storage.Client()
bucket = storage_client.get_bucket(bucket_name)
blob = bucket.blob(destination_blob_name)
blob.download_to_filename(download_file_name)
print(blob)

### download files from googole cloud Storage

from google.cloud import storage

### set #####
bucket_name = 'project-187007.appspot.com'
destination_blob_name = 'ig_picture/11024107_838713289520944_1923731223_n.jpg'
download_file_name = '/Users/apple/nicole/IXQ/IXQ_code/1223.jpg'
#############

storage_client = storage.Client()
bucket = storage_client.get_bucket(bucket_name)

blob = bucket.blob(destination_blob_name)
blob.download_to_filename(download_file_name)

print(blob)
