Title / Description
Code require 'oscar_scraper' # Initialize Oscar Scraper scraper = OscarScraper.new # Log in to oscar (Replace sid and pin with your sid and pin) logged_in = scraper.login :sid => "90XXXXXXX", :pin => "XXXXXX" if (logged_in) # Get list of all terms terms = scraper.get_terms # Find all sections that match the search criteria classes = scraper.find_class :term => terms["Fall 2008"], :subject => "ECE", :course => "3035" # Output search results classes.each { |c| puts c } end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code