Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 22 lines (18 sloc) 0.492 kb
5cc24cc initial import
Jason Draper authored
1 #!/usr/bin/ruby
2 require 'rubygems'
3 require 'hpricot'
4 require 'open-uri'
5
6 require File.join(File.expand_path(File.dirname(__FILE__)), "config.rb")
7
8 doc = Hpricot(open(WEBSITE_URL))
9
10 for school in SCHOOLS
11 #First we need to open the page
12 status = "Regular Schedule"
13 (doc/"body//table//td").each do |item|
14 if item.inner_html.strip == school
15 status = item .next.inner_html
16 end
17 end
18 #clean up the school name:
19 name = school.split(" ")[0]
20 puts name + ": " + status
21 end
Something went wrong with that request. Please try again.