0.0.9 • Published 2 years ago

notion-crawler v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

notion-crawler

Easily crawl your public notion pages

Install

npm install notion-crawler

Usage

import notionCrawler from "notion-crawler";

const { pageBlocks, notionPageIdToSlugMapper, pageMap } = await notionCrawler(
  rootNotionPageId,
  spaceId,
  config
);

API

notionCrawler(rootNotionPageId, spaceId?, config?)

rootNotionPageId

Type: string

You can find it in at the end of your notion public url

For example, in case of https://ashiknesin.notion.site/AshikNesin-com-d95d7c8c5eaf40e1a7ae629f4aba0000

d95d7c8c5eaf40e1a7ae629f4aba0000 is rootNotionPageId.

spaceId

Type: string

config

Type: object Default: {}

Credits

This module is heavily based on nextjs-notion-starter-kit by Travis Fischer

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7-0

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago