Skip to content

quan0715/NotionBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NotionBot

Introducing to NotionBot

NotionBot SDK is an developer-friendly toolkit designed to simplify interactions with the official Notion API. It empowers developers to easily integrate Notion's features into their applications.

How to use it

Create your own Integration

Install NotionBot Package

git clone https://github.com/quan0715/NotionBot.git
cd NotionBot
pip install .

Start using NotionBot in your Python script

from NotionBot.NotionClient import Notion
AUTH = <your own integration's token>
notion_bot = Notion(auth=AUTH)
  • Integration token usually started with "secret_..."
  • If it authenticated, it will print out Connect to integration YOUR_INEGRATION_NAME,otherwise Connect failed please request again !!! As you run into this situation, make sure to check out your integration token is type it correctly.

Get specific Page, Database, Block

Notion.get_page(your page title)

page = your_notion_bot.get_page("your_page_title")

Notion.get_database(your page title)

database = your_notion_bot.get_page("your_database_title")

block = your_notion_bot.get_block("your_block_id")

Check Guide for more details about the usage.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages