Tell us your story
Tell us your story
How has offline Wikipedia affected you? The Wikimedia Foundation (the non-profit that supports Wikipedia) is looking for personal, diverse and inspiring stories about how offline Wikipedia affects the world. If you have a personal story that you would like to share, please contact: stories@kiwix.org. Thank you!

Difference between revisions of "Projects/open edx"

From Kiwix
Jump to: navigation, search
m
m (add info about VM)
 
Line 12: Line 12:
  
 
it's use [https://en.wikipedia.org/wiki/XBlock Xblocks] and we can get them with the API. List of Xblocks is available here : https://openedx.atlassian.net/wiki/display/COMM/XBlocks+Directory
 
it's use [https://en.wikipedia.org/wiki/XBlock Xblocks] and we can get them with the API. List of Xblocks is available here : https://openedx.atlassian.net/wiki/display/COMM/XBlocks+Directory
 +
 +
VM of basic openedx is available at bitnami (Require at least 3Go of RAM): [https://bitnami.com/stack/edx/virtual-machine] with exemple course.
 +
VM of Fun version of openedx is here : [https://github.com/openfun/fun-boxes]
  
 
===Exemple using API===
 
===Exemple using API===

Latest revision as of 18:29, 25 February 2017

Open edX is the open-source (AGPL) platform software for MOOC developed by EdX.

Lots of websites are powered by Open edx, especially edx and fun (France Université Numérique).

A list is available here : https://github.com/edx/edx-platform/wiki/Sites-powered-by-Open-edX

Course instructor choose their license for content.

Using API

You Must register with the Open edX server with Oauth 2.0 Documentation : https://edx.readthedocs.io/projects/edx-platform-api/en/latest/courses/index.html

it's use Xblocks and we can get them with the API. List of Xblocks is available here : https://openedx.atlassian.net/wiki/display/COMM/XBlocks+Directory

VM of basic openedx is available at bitnami (Require at least 3Go of RAM): [1] with exemple course. VM of Fun version of openedx is here : [2]

Exemple using API

 1 #!/usr/bin/env python3
 2 #List course of fun 
 3 import requests
 4 import json
 5 
 6 url = "https://www.fun-mooc.fr/api/courses/v1/courses/"
 7 data={"pagination" : { "next" :url } }
 8 while data["pagination"]["next"] != None:
 9     r = requests.get(data["pagination"]["next"])
10     data=r.json()
11     for course in data["results"]:
12         print(course["course_id"] , " : ", course["name"])