Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
scripts for dartwiki.org
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
courses
dfd
dumps
README.rdoc

README.rdoc

dfd

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.

courses

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.

Something went wrong with that request. Please try again.