Below article explains how to insert data into bigquery table using google-cloud-bigquery
library https://cloud.google.com/bigquery/docs/samples/bigquery-table-insert-rows#code-sample
Is there any way to insert data into bigquery table using requests
library instead of google-cloud-bigquery
python client library?
The only other way you can insert data without using the client library is by calling the BigQuery Rest APIs .
insertAll POST: https://bigquery.googleapis.com/bigquery/v2/projects/projectId/datasets/datasetId/tables/tableId/insertAll
But it's advisable to use client libraries as it lets you focus on what's your requirement and what's important rather than implementing APIs from scratch and then formatting the responses into something useful.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.