This is python automation script for Notion. The script runs on my server every minute.
Requirements:
- python3.9
Run:
. ./setup.sh
Create an .env file with the following content:
TOKEN=<token>
DATABASE_ID=<id>
Put your token and database in the variables.
The command above creates run.sh
file that required for Cron.
Now open Cron:
crontab -e
and type this:
* * * * * <project dir>/run.sh
The line means that the file run.sh file will run every minute