yarn add puppeteer
yarn add airtable
yarn add dotenv
touch .env
Store your airtable API key and Board key in .env
AIRTABLE_API_KEY='your_api_key'
AIRTABLE_BOARD_KEY='your_board_key'
The table name Table 1 used in the base('Table 1').create command on line 10 of dieuduciel.js refers to the name of the table you want to write to.
Adjust accordingly.
The board columns (all as Single text line, except for description, which is Long text, and image_url, which is URL).
The columns must be defined as:
name
description
image_url
category
type
alcohol
Run the program with node dieuduciel.js
See all the imported data appear in your Airtable board 😃
Big thanks to @jeremiebardon for his help 🙏🏻
