Giter VIP home page Giter VIP logo

courseranotesconverter's Introduction

Coursera Notes Converter

Simple tool to convert notes taken in a Coursera course to CSV or JSON formats.

Getting started

  1. Open the Coursera course, go to the ''Notes'' section and save the page as a complete HTML using any browser.
  2. Select a section from the selection box . By default is not allowed to convert all notes (All notes option).
  3. Run: ./courseranotesconverter -i input.html -o output.json

Usage

 usage: courseranotesconverter [-h] --input INPUT --output OUTPUT [--tags TAGS]
                               [--reference REFERENCE] [--force_all_notes]
                               [--no_location_field] [--format FORMAT]
 
 optional arguments:
   -h, --help            show this help message and exit
   --input INPUT, -i INPUT
                         Input file (.html) (default: None)
   --output OUTPUT, -o OUTPUT
                         Output file (.json) (default: None)
   --tags TAGS, -t TAGS  String to be added to the field 'tags' (default: None)
   --reference REFERENCE, -r REFERENCE
                         String to be added to the field 'reference' (default:
                         None)
   --force_all_notes     Force 'All notes' conversion (default: False)
   --no_location_field   Exclude 'location' field (default: False)
   --format FORMAT       Output format (json or csv) (default: json)

JSON format

[
{
"title": "<Course topic>: <Lesson name> <Note 1 location>",
"tags" : "<--tags option value>",
"text" : "<Note 1>",
"original-text" : "<Highlighted text from the lesson>",
"reference" : "<--reference option value>",
"location-topic" : "<Course topic>",
"location-lesson" : "<Lesson name>",
"location-mark" : "<Note 1 location mark>",
"location-full" : "<Course topic>: <Lesson name> <Note 1 location mark>",
"location" : "[[<Course topic>: <Lesson name> <Note 1 location mark>]]"
},
{
"title": "<Course topic>: <Lesson name> <Note 2 location>",
"tags" : "<--tags option value>",
"text" : "<Note 2>",
"original-text" : "<Highlighted text from the lesson>",
"reference" : "<--reference option value>",
"location-topic" : "<Course topic>",
"location-lesson" : "<Lesson name>",
"location-mark" : "<Note 2 location mark>",
"location-full" : "<Course topic>: <Lesson name> <Note 2 location mark>",
"location" : "[[<Course topic>: <Lesson name> <Note 2 location mark>]]"
},
{
"title": "<Course topic>: <Lesson name> <Note 3 location>",
"tags" : "<--tags option value>",
"text" : "<Note 3>",
"original-text" : "<Highlighted text from the lesson>",
"reference" : "<--reference option value>",
"location-topic" : "<Course topic>",
"location-lesson" : "<Lesson name>",
"location-mark" : "<Note 3 location mark>",
"location-full" : "<Course topic>: <Lesson name> <Note 3 location mark>",
"location" : "[[<Course topic>: <Lesson name> <Note 3 location mark>]]"
}
]

Using to import Coursera notes into TiddlyWiki5

  1. Generate a JSON file following the "Getting Started" steps. Optionally add --tags option to add tags to the tiddlers.
  2. Import the generated JSON using TiddlyWiki importer.

courseranotesconverter's People

Contributors

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