Code Monkey home page Code Monkey logo

notion-word-data's Introduction

notion-word-data

This is a python project to fetch a given word parts of speech, definitions, examples and synonyms using Google Dictionary, and automatically add it to a Notion database.

Appendix

Notion limits the number of requests to 3 per second (see Notion website for more information). Limits for property value sent to the Notion API (see Notion website for more information):

Property value type Inner property Size limit
Rich text object text.content 2000 characters
Rich text object text.link.url 1000 characters
Rich text object equation.expression 1000 characters
Any array of rich text objects 100 elements
Any URL 1000 characters
Any email 200 characters
Any phone number 200 characters
Any multi-select 100 options
Any relation 100 related pages
Any people 100 users

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

DATABASE_ID See Notion website for more information.

  1. Get the URL of your database of choice
  2. Copy your database ID, which you can see in https://www.notion.so/{workspace_name}/{database_id}?v={view_id}

TOKEN See Notion website for more information.

  1. Create a Notion integration
  2. Share your integration to your database of choice
  3. Copy your "Internal Integration Token"

Run Locally

Clone the project

  git clone https://github.com/MatthieuMezirard/notion-word-data.git

Go to the project directory

  cd notion-word-data

Install dependencies

  poetry install

Enter the words and their languages

  code WORDS.md

Run the main file

  python .\notion-word-data\app.py

Running Tests

To run tests, run the following command

  poetry run pytest

License

MIT

notion-word-data's People

Contributors

eeeeeeeee1212 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

jamespurnama1

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.