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: Thank you!


Jump to: navigation, search

Projects/open edx

461 bytes removed, 3 years ago
no edit summary
it's use [ Xblocks] and we can get them with the API. List of Xblocks is available here :
<nowiki>===Exemple using API===</nowiki><syntaxhighlight lang="python3" line="1">#!/usr/bin/env python3 import requestsimport json url = ""data={"pagination" : { "next" :url } }#data["pagination"]["next"] = urlwhile data["pagination"]["next"] != None: r = requests.get(data["pagination"]["next"]) data=r.json() for course in data["results"]: print(course["course_id"] , " : ", course["name"])</syntaxhighlight><syntaxhighlight lang="python3" line="1">
#!/usr/bin/env python3

Navigation menu