Nov 7, 2022 | Google BigQuery, Google BigQuery API, Python
Buy Me a Coffee? Your support is much appreciated! Source Code: import time from google.cloud import bigquery client = bigquery.Client() job_config = bigquery.LoadJobConfig( source_format=bigquery.SourceFormat.CSV, skip_leading_rows=1, autodetect=True, ) table_id =...
Nov 7, 2022 | Google BigQuery, Python
Buy Me a Coffee? Your support is much appreciated! Source Code: from pathlib import Path import time import os from google.cloud import bigquery def table_reference(project_id, dataset_id, table_id): dataset_ref = bigquery.DatasetReference(project_id, dataset_id)...
Nov 2, 2022 | Google Gmail API, Python
Buy Me a Coffee? Your support is much appreciated! import time from google_apis import create_service CLIENT_FILE = ‘client-secret.json’ API_NAME = ‘gmail’ API_VERSION = ‘v1’ SCOPES = [‘https://mail.google.com/’]...
Oct 23, 2022 | Python, YouTube API
Buy Me a Coffee? Your support is much appreciated! Source Code: demo.py from youtube import YouTube client_file = ‘client-secret.json’ yt = YouTube(client_file) yt.init_service() # exampe 1. List channel subscriptions subscriptions =...
Sep 26, 2022 | Google BigQuery API, Python
Buy Me a Coffee? Your support is much appreciated! Source Code:
Sep 20, 2022 | Google Cloud Storage, Python
Buy Me a Coffee? Your support is much appreciated! Source Code: