The current version uses Google Cloud Datastore to store the texts. The advantage of saving to Datastore is speed and low costs. Processing the texts can be done later by a cronjob as described in the next section.
An example for a cronjob processing
If the cron is run in the Google Cloud everything is set. When not in the Google Cloud (locally or elsewhere), see Google Auth Api Documentation.
For this example I chose the service account with json keyfile option.
The snippet gets all texts for the collection 12345 and prints them:
from google.cloud import datastore client = datastore.Client() query = client.query(kind="AX-NLG-Text") query.add_filter("collection_id", "=", 12345) for item in query.fetch(): print(item.get("uid"), " -- ", item.get("data").get("text"))