Giter Club home page Giter Club logo

mangrove's Introduction

mangrove

Gathers metadata and transforms it to learning object metadata.

dependencies

Dependencies listed for each interface. Currently tested for Python 2.7 and 3.6. Tests fail for 3.4 and 3.5 (test process goes to sleep in mysql execution).

generic

mediawiki

youtube

khanacademy

architecture

Data can be gathered through different supported interfaces. An interface, or module, can be configured with a specific configuration. For example, multiple Wikipedia instances can be harvested with a single Mediawiki module and different configurations. The module can be generic, while the config file contains the specific configurations for that module.

usage

The mangrove-crawler start harvesting a source by providing:

./mangrove-crawler.py -s <source>

Sources can be defined in the config file as sections. The source is equal to the config section header, and the configuration part needs to correspond to the collection name in the collections database table. Usually, the section header is equal to the collection name. Here's an example for source "wikipedia_nl" with comments:

{
    "common": {
        "proxy_host": "123.123.23.23",
        "proxy_port": "3128",
        "db_host": "localhost",
        "db_user": "root",
        "db_passwd": "******",
        "db_name": "mangrove",
        "fs_recordbase": "/var/mangrove_records",
        "fs_workbase": "/var/mangrove_workdir"
    },
    "wikipedia_nl": {
        "proxy_use": false,
        "module": "mediawiki",
        "wiki": "nlwiki",
        "host": "https://nl.wikipedia.org/wiki/",
        "download_path": "http://dumps.wikimedia.org/nlwiki/latest/",
        "context_static": "PO",
        "context_dynamic": false,
        "age_range": "8-12",
        "list_prefix": "Lijst van"
    }
}

roadmap

The following things to do for a 1.0

  • setup.py
  • debug output optional
  • oaiprovider/uniform database solution for metadata storage
  • fix reporter, for generic data storage
  • command for new source, generating config file, and database entry
  • unittests
  • better exceptions and logging

mangrove's People

Contributors

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