Demo pipeline that pulls paged data from a Bubble app API and lands it in BigQuery. Everything is env-driven; no secrets are committed.
- Receive Bubble app URL + token.
- Fetch rows with query params (see
main.py/old_main.py). - Normalize JSON into a dataframe.
- Append into a BigQuery table via
google-cloud-bigquery.
Set env vars before running:
GCP_PROJECT– target GCP project.GOOGLE_APPLICATION_CREDENTIALSorSERVICE_ACCOUNT_FILE– service account JSON.BUBBLE_APP_URL– Bubble API base URL.BUBBLE_API_TOKEN– Bubble API bearer token.- Adjust
table_idinsidemain.pyas needed.
pip install -r requirements.txt
python main.py- Replace sample URLs/tokens with non-sensitive values.
old_main.pyshows an alternate handler for Pub/Sub style input; keep it for reference or delete if not needed.- Add retries/backoff and schema enforcement before production use.