Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (12 sloc) 393 Bytes
#!/bin/env ruby
# encoding: utf-8
# frozen_string_literal: true
require 'csv'
require 'everypolitician'
require 'pry'
require 'scraperwiki'
require_rel 'lib/score'
URL = 'http://www.gender-balance.org/export/Puerto-Rico/House-of-Representatives'
data = GenderScore.new(open(URL).read).results
ScraperWiki.sqliteexecute('DROP TABLE data') rescue nil
ScraperWiki.save_sqlite(%i(uuid), data)
You can’t perform that action at this time.