https://github.com/pineapplegiant/vim-to-notion
My very bad script to upload my local Markdown pages to notion
https://github.com/pineapplegiant/vim-to-notion
Last synced: 3 days ago
JSON representation
My very bad script to upload my local Markdown pages to notion
- Host: GitHub
- URL: https://github.com/pineapplegiant/vim-to-notion
- Owner: pineapplegiant
- Created: 2020-06-20T23:49:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-09T15:29:32.000Z (almost 6 years ago)
- Last Synced: 2025-10-21T00:35:54.760Z (9 months ago)
- Language: Python
- Homepage:
- Size: 8.64 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My Markdown to Notion 📝
[](http://opensource.org/licenses/MIT)
[](https://img.shields.io/github/repo-size/pineapplegiant/vim-to-notion)
[](https://img.shields.io/badge/madewith-vim%E2%9D%A4%EF%B8%8F-red)
## Inspiration
I like to write in Vim, but wanted to continue editing on the go in Notion... This helps me upload "faster", to achieve something of that nature idk.

## Tools
* pipenv
* python3.7
## Development
Put your env files in a `.env` file in the same directory
[Link to how to get your api token](https://medium.com/@jamiealexandre/introducing-notion-py-an-unofficial-python-api-wrapper-for-notion-so-603700f92369)
```
# Your API TOKEN ->
API_TOKEN = ""
# Table full page
COLLECTION_VIEW = ""
```
First download necessary packages for pipenv:
`pipenv install`
Then run `pipenv run notion_scripts.py -f testMarkdownExample.md`
### Packages used:
* ["unofficial" notion api](https://github.com/jamalex/notion-py)
* [md2notion](https://github.com/Cobertos/md2notion)
* [python frontmatter parser](https://github.com/eyeseast/python-frontmatter)
* [python-dotenv](https://pypi.org/project/python-dotenv/)
* [pprint](https://docs.python.org/3/library/pprint.html)