Skip to content
A way to send posts to Notion
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This is boilerplate code that allows you to send over posts to a Notion page.

Getting Started

  1. Clone the repo and download the dependencies.
pip install -r requirements.txt
  1. Log into your Notion account and go into the cookies under ''. Find 'token_v2', copy the content, and paste it into the token variable.

  2. Now you can get to work!

What You Need

Putting It Together

>>> url = ''
>>> id = 'v88k50vi62va8fyp'
>>> h2a(url, id)
>>><TextBlock (id='dff359a0-c2c5-4191-b412-3ec231dbd24a', title='There is another aspect of Isaac Newton calling his notebook a waste book that I forgot to mention...'

Feel free to use in the console or to import into a project. Big thanks to and notion-py!

You can’t perform that action at this time.