Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jheddings/dayone2notion
Import content from Day One into Notion
https://github.com/jheddings/dayone2notion
Last synced: about 2 months ago
JSON representation
Import content from Day One into Notion
- Host: GitHub
- URL: https://github.com/jheddings/dayone2notion
- Owner: jheddings
- License: mit
- Created: 2021-02-04T21:50:02.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-27T00:57:18.000Z (over 1 year ago)
- Last Synced: 2024-08-08T00:44:04.386Z (5 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 6
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- project-awesome - jheddings/dayone2notion - Import content from Day One into Notion (Python)
README
# dayone2notion
Import content from Day One into Notion.
## Requirements
This script uses several helper libraries. Install using `pip`:
```
python3 -m pip install -r requirements.txt
```Advanced users may want to use `venv` to manage these dependencies.
## Usage
First, you'll need to export the content from Day One:
1. Export a journal from Day One in JSON format.
2. Unzip the archive.Now, run the script, supplying your user token and top-level archive page:
```
dayone2notion.py --token TOKEN_V2 --page URL
```It's possible to import multiple files at the same time.
```
dayone2notion.py --token TOKEN_V2 --page URL ...
```Additionally, the `--raw` parameter will include a raw copy of the entry data in the import.
### Obtaining your user token
You'll need to inspect cookie values using a browser. After you have logged into Notion,
You should be able to check for a cookie called `token_v2` in your session. This is the
value we need in order to access your pages. Note that this is only used to access Notion
and is never in any way made visible to others.## Known Issues
- The script is slow due to interactions with the Notion API server.