Retrieves all records from an airtable database,, loads them into a df, selects a few columns, and writes those to google sheets.
- make a config file that looks like this:
- Write your config file:
base_id = '<xxxxxxxxxx>'
api_key = '<xxxxxxxxxx>'
table_name = '<Database Name>'
spreadsheet_name = '<Spreadsheet Name>'
filename = '<google_sheets_api_auth.json>'
-
main.py next to config.py and your json api creds file.
-
in terminal run
pip3 install -r requirements.txt
and this will install the dependenciesgit -
in terminal run
python3 main.py