Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

switching to mechanize

  • Loading branch information...
commit b234a00baacbe3139c058d467250a9eda00f0a44 1 parent ab207dd
@szTheory authored
Showing with 6 additions and 1 deletion.
  1. +1 −1  Gemfile
  2. +3 −0  Gemfile.lock
  3. +2 −0  scrape.rb
View
2  Gemfile
@@ -1,6 +1,6 @@
source "http://rubygems.org"
-gem "nokogiri"
+gem "mechanize"
group :test do
gem "rspec"
View
3  Gemfile.lock
@@ -2,6 +2,8 @@ GEM
remote: http://rubygems.org/
specs:
diff-lcs (1.1.2)
+ mechanize (1.0.0)
+ nokogiri (>= 1.2.1)
nokogiri (1.4.4)
rspec (2.5.0)
rspec-core (~> 2.5.0)
@@ -16,5 +18,6 @@ PLATFORMS
ruby
DEPENDENCIES
+ mechanize
nokogiri
rspec
View
2  scrape.rb
@@ -6,6 +6,8 @@ class Scraper
BUS_TYPES = ["Contractor/Installer","Distributor","Financial Company or Financial Consultant","Law Firm","Research Laboratory","Manufacturer/Supplier","Utility","Project Developer (Architects, planners, consultants, and builders of solar projects)","Other (non-financial)","Commercial System User","Solar Winery/Brewery/Distillery"]
STATES = ["AL","AK","AZ","AR","CA","CO","CT","DE","DC","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY"]
+
+
LINE_IDX_NAME = 0
LINE_IDX_URL = 1
LINE_IDX_CONTACT = 2
Please sign in to comment.
Something went wrong with that request. Please try again.