code to scrape the dartmouth faculty directory and import it into dartwiki.org. complicated by a limited hosting environment. i first ran dfd.rb, which scrapes and saves the objects, then transferred them to the dartwiki server, then ran the mediawiki php commands to import the pictures and page text.
scrapes registrar’s median pages going back to around 2000 and current orc. to get an up-to-date version, run:
cd courses/test/ rm dump ruby course_set_test.rb -n test_update
this creates a ‘dump’ file containing a CourseSet object.
ruby course_set_test.rb -n test_print
prints the ‘dump’ file in text format
rm course_set.json ruby course_set_test.rb -n test_json
creates a new course_set.json file containing the CourseSet in json format.