This is a simple Python script to export a Notion database with a 'Date' attribute to an ICS file. All the heavy lifting is done by the
notion-py
library. You'll need to provide a settings.json
file with the following keys:
token
: the token_v2
you can get from your browsers cookiesblock
: the Notion URL of your databaseproperty
: the name of the property you want to use as the dateAlso make sure that the make_title
function in the make_ics
script fits your Database.
If you run this script in a cron job, and publish it on some publicly reachable URL, you can import it into Google Calendar :).
Interested in these kinds of hacks? There's more at our Notion Hacks community!