OCW to Contentful via JSON data from OCW
OCW provides courseware data in a JSON format organized by department. Each department has a list of courses with metadata and file links nested by type. In order to get to a single course, we load the department data, then access a single course (ocw uids are keys) or loop through courses. Department URL example: https://ocw.mit.edu/courses/biology/biology.json
This code version provides methods to import these OCW data into Contentful.