Home / Companies / Census / Blog / Post Details
Content Deep Dive

Connect to BigQuery with the Python API Client + Example Script | Census

Blog post from Census

Post Details
Company
Date Published
Author
Khalif Cooper
Word Count
2,175
Language
English
Hacker News Points
-
Summary

The tutorial covers how to export data from Google BigQuery API using Python. To start, a Google Cloud service account needs to be created and set up with the necessary roles and permissions. A bucket in Google Cloud Storage is then created and named, where the exported CSV file will be stored. The tutorial also explains alternative methods for exporting data, including using a reverse ETL tool like Census. The process involves setting variables for the dataset, installing the Google Cloud API client library, and then extracting and exporting the data from BigQuery to the specified location. Finally, the CSV file is downloaded from Google Cloud Storage to a local machine.