Coder Social home page Coder Social logo

canvda's Introduction

Cotion

This is a Canvas to Notion bridge. It allows you to update your Notion database with the list of assignments from Canvas. This code is written so that it be run every day to update the Notion database with the latest assignments.

Configuration

I have attached a config.template.json file to the repo, use that as a template to create your own config.json file.

Canvas

Domain

For the DOMAIN field, you should put the domain of your Canvas instance. For example, if your Canvas instance is https://canvas.instructure.com, then you should put canvas.instructure.com in the DOMAIN field.

Token

For the TOKEN field, you should generate a Canvas API token. You can do this by going to your Canvas profile settings and generating a new access token, then pasting that token into the TOKEN field.

Notion

Token

For the TOKEN field, you should generate a Notion API token. You can do this by going to the Notion integrations page and creating a new Personal integration called cotion. Then, you can paste the token into the TOKEN field.

In your Notion database, add a connection for the cotion integration. Then, cotion should have the ability to see your database.

Database ID

For the DATABASE_ID field, you should put the ID of the Notion database that you want to update. You can get this by going to the Notion database and copying the URL. The ID is the part of the url before the ? character.

Database Properties

Remember, this database should have the following properties:

  • Title : (Name)
  • Due : (Date)
  • Topic : (Select)

Installation & Running the code

  1. Clone the repo
  2. Run pip install -r requirements.txt
  3. Create a config.json file using the config.template.json file as a template
  4. Run python main.py

Command Line Flags

  • --force If this flag is specified, the script will run even though it was already run today.
  • --computer I specified this flag so that I can run the script on my computer as a startup process on my terminal. This flag suppresses some print warnings that would be annoying otherwise everytime that I opened a new terminal.

canvda's People

Contributors

abhiramg2021 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.