rrshaban / SwatCoRe

Development repo for the Swarthmore Course Review
https://swatcoursereview.com/
3 stars 6 forks source link

Add more web scraping #54

Closed gabcbrown closed 9 years ago

rrshaban commented 9 years ago

I'll put together a script to add the FYS, lab, writing, and credit information from classes.json to the production DB.

Modifying elements on production is pretty straightforward from Rails console:

Course.where(crn: "ANCH042")[0].update(name: "Democratic Athens (W)")

where takes the parameter you use to match a course to a data-point, and you pass update the key and value you'd like to set. Seems like a good way to pick up contributing again.

We'll need to figure out in the future, though, how to deal with adding/updating data. Maybe a diff CLI tool?