Code Monkey home page Code Monkey logo

sushi-chef-edsitement's Introduction

EDSITEment Chef

Kolibri is an open source educational platform to distribute content to areas with little or no internet connectivity. Educational content is created and edited on Kolibri Studio, which is a platform for organizing content to import from the Kolibri applications. The purpose of this project is to create a chef, or a program that scrapes a content source and puts it into a format that can be imported into Kolibri Studio. This project will read a given source's content and parse and organize that content into a folder + csv structure, which will then be imported into Kolibri Studio. (example can be found under examples directory.

How to run it.

The expected compressed file size after running is 900Mb

./souschef.py

or

./run.sh

Installation

  • Install Python 3 if you don't have it already.

  • Install pip if you don't have it already.

  • Create a Python virtual environment for this project (optional, but recommended):

    • Install the virtualenv package: pip install virtualenv
    • The next steps depends if you're using UNIX (Mac/Linux) or Windows:
      • For UNIX systems:
        • Create a virtual env called venv in the current directory using the following command: virtualenv -p python3 venv
        • Activate the virtualenv called venv by running: source venv/bin/activate. Your command prompt will change to indicate you're working inside venv.
      • For Windows systems:
        • Create a virtual env called venv in the current directory using the following command: virtualenv -p C:/Python36/python.exe venv. You may need to adjust the -p argument depending on where your version of Python is located.
        • Activate the virtualenv called venv by running: .\venv\Scripts\activate
  • Run pip install -r requirements.txt to install the required python libraries.

Description

A sous chef is responsible for scraping content from a source and putting it into a folder and csv structure (see example examples/Sample Channel.zip)

A sous chef skeleton script has been started for you, see souschef.py.

Sous chef instructions can be found here

For more examples, see examples/openstax_souschef.py (json) and examples/wikipedia_souschef.py (html)


Rubric

Please make sure your final chef matches the following standards.

General Standards

  1. Does the resulting folder structure match the expected topic tree?
  2. Are the Channel.csv and Content.csv files valid (no missing files, data formatted correctly, etc.)?
  3. Does the code work (no infinite loops, exceptions thrown, etc.)?
  4. Are the source_ids determined consistently (not based on a changing url path, in same location every run, etc.)?
  5. Is there documentation on how to run it (including extra parameters to use)?

Coding Standards

  1. Are there no obvious runtime or memory inefficiencies in the code?
  2. Are the functions succinct?
  3. Are there comments where needed?
  4. Are the git commits easy to understand?
  5. Is there no unnecessary nested if or for loops?
  6. Are variables named descriptively (e.g. path vs p)?

Python Standards

  1. Is the code compatible with Python 3?
  2. Does the code use common standard library functions where needed?
  3. Does the code use common python idioms where needed (with/open, try/except, etc.)?

sushi-chef-edsitement's People

Contributors

elaeon avatar ivanistheone avatar kollivier avatar

Watchers

 avatar Jamie Alexandre avatar James Cloos avatar José L. Redrejo Rodríguez avatar Radina Matic avatar Devon Rueckner avatar Samson Akol avatar Jacob Pierce avatar Learning Equality avatar Sairina 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.