https://github.com/pirafrank/notion-to-text
A simple way to get content of notion.site pages in plain text or as JSON (e.g. for use in APIs, with integration platforms, etc.).
https://github.com/pirafrank/notion-to-text
cli notion notion-blog server serverless
Last synced: about 1 month ago
JSON representation
A simple way to get content of notion.site pages in plain text or as JSON (e.g. for use in APIs, with integration platforms, etc.).
- Host: GitHub
- URL: https://github.com/pirafrank/notion-to-text
- Owner: pirafrank
- License: mit
- Created: 2021-11-23T20:06:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-02T23:33:10.000Z (about 2 months ago)
- Last Synced: 2025-04-03T00:25:57.939Z (about 2 months ago)
- Topics: cli, notion, notion-blog, server, serverless
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/notion-to-text
- Size: 188 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# notion-to-text
A simple way to get content of notion.site pages in plain text (e.g. for use with `curl`, etc.). Powered by [Puppeteer](https://github.com/puppeteer/puppeteer) and [html-to-text](https://www.npmjs.com/package/html-to-text).
Provided as:
- [standalone](standalone/README.md), a CLI program that outputs to stdout or runs a server
- [lambda](lambda/README.md) function`core` module is a tiny package providing common functionality needed by standalone and lambda.
## Why
Notion is a great note-taking tool and with sites an easy way to maintain a public page. Unfortunately being a PWA you can't get page content just by using curl, so that's where notion-to-text can help.
I've created it for personal use and as such it is provided as-is with no warranties.
## License
MIT