Code Monkey home page Code Monkey logo

cobocardutils's Introduction

cobocardutils

Some utility tools for the flashcard learning tool CoboCards.com

Rest API Backuper

Simple backup script to save all cardsets via the REST API from CoboCards: http://www.cobocards.com/api/pmwiki.php/Main/GetStarted

Please be aware that the response format is HTML encoded. It is not the internal CoboCards Markup language. It can not be re-imported into CoboCards.

The Backup includes:

  • Folders corresponding to CC Folders
  • Subfolders corresponding to Cardsets
  • .xml file which includes all HTML encoded cards
  • Subfolders with images (.jpg) and formulars (.gif)

All files are packaged in a .zip file.

Credentials

An CoboCards Api Key and your credentials are required to use this script (see script source code).

Usage

python3 CoboCardsRestBackup.py

Export Backuper

Simple backup script (Jupyter Notebook) to save all cardsets using the export function of Cobocards.

The exported XML files are encoded in the internal CoboCards Markup languange and can be reimported. They also include images. Latex formulars are included as source code in the card content.

Dependencies

The script uses Selenium and a Chrome driver to crawl through all cardsets and export them automatically.

Credentials

A CoboCards username and password is required.

Usage

Open it as a jupyter notebook and execute all fields.

One Note Importer

Simple importer script for Cobocard Backups to OneNote using the Microsoft Graph API. Data from both backup sources (see above) is required in order to preserve Latex formulars as source.

Dependencies

You have to register an app in order to be able to use the script.

  1. Choose a name of the app.

  2. Generate a new application secret and insert the password / public key & (application) id in the ./microsoft_graph_authenticator/config.py file.

  3. Add a new platform with a redirect URL to http://localhost:5000/login/authorized.

  4. Add permissions for the following scopes:

  • Notes.ReadWrite.All
  • Notes.Read.All
  • Notes.Create
  • Notes.ReadWrite
  • Notes.ReadWrite.CreatedByApp
  1. Save

Usage

Open it as a jupyter notebook and execute all fields.

Known Issues

  • #'s in latex formulars brake the code -> just don't use them in formulars
  • latex formulars are not converted to microsoft formulars automatically -> actually Microsoft published a Tex importer for Office. However, I can't find a way to access it from the graph API :(

cobocardutils's People

Contributors

fabolhak avatar

Watchers

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