Skip to content

This is a Notion Integration to crawl databases to find a new page

License

Notifications You must be signed in to change notification settings

75asa/notion-database-crawler

Repository files navigation

notion-database-crawler

Deploy

What is this ?

This is Notion Database crawler. if found new page, notify slack channel !

How to use ?

  1. create new app from manifest file;
  2. paste this manifest.yml and install workspace
  3. add slack app your channel
  4. go to Developers・Beta: Getting start
  5. create integration
  6. invite integration to a database page you wanna watch
  7. click Heroku deploy button at tha top
  8. enter required config values
  9. go to api.slack.com FYI: https://api.slack.com/apps

Note

  • You can choose multiple Slack channels to notify a new post. if you wanna, set SLACK_CHANNEL_NAMES like [general, notifications]
  • If you wanna display some Notion page properties, you can set NOTION_VISIBLE_PROPS like [title,description,created_time,updated_time]

Image from Gyazo

How to use Docker

commands

  • $ docker compose up -d
  • $ docker compose down -v
  • $ docker compose ps

How to backup on Postgres

  • $ heroku pg:backups:capture --remote heroku-prd
  • $ curl -o latest.dump (shell heroku pg:backups public-url --remote heroku-prd)
  • $ docker exec -i postgres-notion-database-crawler pg_restore --verbose --clean -U notion --no-acl --no-owner -d notion < latest.dump

⚠️ Caution

Notion API is still [beta] Currently using v0.4.9

About

This is a Notion Integration to crawl databases to find a new page

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published