Giter Club home page Giter Club logo

json2notion's Introduction

Json2md logo

About json2notion

Notion put is a generic script that allows to insert data from a json file in a Notion database. The interest of this script is that during the update of the data the information in the database is simply updated on the page which allows to keep the already existing backlink to other Notion page

API Key(Token)

$ export NOTION_TOKEN="{your integration token key}"

Usage: Shell Command

  • Notionput requires db_id of the Notion database
  • Notionput requires json_file formatted as in the example below
{
    "entries": [{
        "_id": "tweetid1",
        "type": "Twitter",
        "fields": {
            "message": "blah blah",
            "author": "Elon",
            "location": "paris"
        },
        "body": {
            "type": "embed",
            "content": "<tweet_url>"
        }
    }]
}
  • The keys between the braces of fields can be modified but the same name must be assigned to the column in the database
  • Example of use of the script :
    python3 main.py -i d08f397181941f990c7ed767a653 -f data.json

Note Works with python version 3.10 or later

Restrictions

  • If you want to increase the number of input data, you must first delete the elements in the database from the same source.

json2notion's People

Contributors

moul avatar quentinphrl avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.