Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/echo724/notion2medium
Simple command that publishes Notion Page to Medium.
https://github.com/echo724/notion2medium
medium medium-api notion notion-api notion-blog python
Last synced: 2 months ago
JSON representation
Simple command that publishes Notion Page to Medium.
- Host: GitHub
- URL: https://github.com/echo724/notion2medium
- Owner: echo724
- License: apache-2.0
- Created: 2022-02-04T11:51:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-28T02:44:20.000Z (over 1 year ago)
- Last Synced: 2024-05-02T05:57:33.745Z (8 months ago)
- Topics: medium, medium-api, notion, notion-api, notion-blog, python
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 12
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## About Notion2Medium
[![PyPI version](https://badge.fury.io/py/notion2medium.svg)](https://badge.fury.io/py/notion2medium)
[![Code Quality](https://github.com/echo724/notion2medium/actions/workflows/code_quality.yaml/badge.svg)](https://github.com/echo724/notion2medium/actions/workflows/code_quality.yaml)- Publish a post to **Medium** just from your **Notion Page** by **Console Cli**
## API Keys(Token)
- **Notion API Token**: create [an integration and find the token](https://www.notion.so/my-integrations). → [Learn more about authorization](https://developers.notion.com/docs/authorization).
- **Medium API Token**: create **Medium Integration** from [Medium Setting](https://medium.com/me/settings)
- Then save your api key(token) as your os **environment variable**
```Bash
$ export NOTION_TOKEN="{your integration token key}"$ export MEDIUM_TOKEN="{your integration token key}"
```- Or add these commands to your shell config files(`.bashrc` or `.zshrc`)
## Install
```Bash
$ pip install notion2medium
```## `Select` Command
- Retrieves **Notion Page** list from **Notion Database**.
- Ask user titles of Notion pages and will call `publish` command to publish the selected page.
- `select` commands require either `id` or `url` of the Notion Database or Page.
```Bash
$ notion2medium select -i
```
## `Publish` Command- Publishes a Medium Post from **Notion Page**.
- Retrieves Notion Page's **content**(children blocks) as markdown and Page's **tags**.
- `publish` commands require either `id` or `url` of the Notion Database or Page.
```Bash
$ notion2medium publish -i
```## Donation
If you think **Notion2Medium** is helpful to you, you can support me here:
## License
[Apache License 2.0](LICENSE)