OSU Course Catalog Scraper
A script to gather course data from Oregon State University's Course Catalog.
Warning! Use of this gem may be against Oregon State University's Acceptable Use Policy. Use at your own risk.
Example
#!/usr/bin/env ruby
# Description: Prints course data to stdout in csv format.
# Usage: ruby example.rb > courses_$(date +%Y%m%d).csv
require "osu-cc-scraper"
require "csv"
OsuCcScraper::Department.all.each do |department|
department.courses.each do |course|
course.sections.each do |section|
$stdout.puts(section.to_a.to_csv)
end
end
end