elaeon / sushi-chef-laboratoria

Sushi Chef script for importing laboratoria content from https://github.com/Laboratoria

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sushi-chef-laboratoria

Sushi Chef script for importing laboratoria content from

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, parse it, and organize that the content files into folder and subfolders, with the metadata provided as CSV files, the whole thing inside a zip archive. The zip archive can then be imported into Kolibri Studio using a LineCook script. (examples souschef scripts can be in the examples directory.

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.

Usage for scraping all Laboratoria's repositories

  ./sushichef.py -v --reset --token='.token'

Usage for scraping specific repository

  ./sushichef.py -v --reset --token='.token' --repo=<repository-name>
  ./sushichef.py -v --reset --token='.token' --repo=curricula-js

About

Sushi Chef script for importing laboratoria content from https://github.com/Laboratoria

License:MIT License


Languages

Language:Python 100.0%