statement 1.8.2 → 1.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/statement/scraper.rb +15 -3
- data/lib/statement/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e375abfba0bb23af1f88d5e173d733be721812d0
|
4
|
+
data.tar.gz: 940caf3ae981d72dcd52ca74f0e1d74956366246
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40162f16dbc4add1c4cc8fdfe6b701f5716e657d8378495c64cf76779e581b75164a020569f171b9e0bde16b0792ca1e63e3baa7c69baf655a172d05ed43068e
|
7
|
+
data.tar.gz: 5e6f07db5351d92918e98078e9aaab580f5ada68d96dc4857ea3801e798a0f99f13f88853af1fea07496c4037498a5f13f7ee14e3eef1aa743aa59ed66daefa2
|
data/lib/statement/scraper.rb
CHANGED
@@ -29,7 +29,7 @@ module Statement
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def self.member_methods
|
32
|
-
[:capuano, :cold_fusion, :conaway, :chabot, :susandavis, :freshman_senators, :klobuchar, :
|
32
|
+
[:capuano, :cold_fusion, :conaway, :chabot, :susandavis, :freshman_senators, :klobuchar, :billnelson, :lautenberg, :crapo, :coburn, :boxer, :vitter, :donnelly, :inhofe, :reid, :palazzo, :roe, :document_query, :swalwell, :fischer, :clark, :edwards, :culberson_chabot_grisham, :barton, :wolf_sherman_mccaul, :welch, :sessions, :gabbard, :cantor]
|
33
33
|
end
|
34
34
|
|
35
35
|
def self.committee_methods
|
@@ -38,10 +38,10 @@ module Statement
|
|
38
38
|
|
39
39
|
def self.member_scrapers
|
40
40
|
year = Date.today.year
|
41
|
-
results = [capuano, cold_fusion(year, 0), conaway, chabot, susandavis, klobuchar,
|
41
|
+
results = [capuano, cold_fusion(year, 0), conaway, chabot, susandavis, klobuchar, palazzo(page=1), roe(page=1), billnelson(year=year),
|
42
42
|
document_query(page=1), document_query(page=2), swalwell(page=1), donnelly(year=year), crapo, coburn, boxer(start=1),
|
43
43
|
vitter(year=year), inhofe(year=year), reid, fischer, clark(year=year), edwards, culberson_chabot_grisham(page=1), barton, wolf_sherman_mccaul, welch,
|
44
|
-
sessions(year=year), gabbard, pryor].flatten
|
44
|
+
sessions(year=year), gabbard, pryor, cantor].flatten
|
45
45
|
results = results.compact
|
46
46
|
Utils.remove_generic_urls!(results)
|
47
47
|
end
|
@@ -616,6 +616,18 @@ module Statement
|
|
616
616
|
results
|
617
617
|
end
|
618
618
|
|
619
|
+
def self.cantor
|
620
|
+
results = []
|
621
|
+
domain = 'cantor.house.gov'
|
622
|
+
url = "http://cantor.house.gov/news/"
|
623
|
+
doc = open_html(url)
|
624
|
+
return if doc.nil?
|
625
|
+
doc.search('h3').each do |row|
|
626
|
+
results << {:source => url, :url => "http://cantor.house.gov"+row.children[0]['href'], :title => row.children[0].text, :date => Date.parse(row.children.last.text), :domain => domain}
|
627
|
+
end
|
628
|
+
results
|
629
|
+
end
|
630
|
+
|
619
631
|
def self.document_query(page=1)
|
620
632
|
results = []
|
621
633
|
domains = [{"thornberry.house.gov" => 1776}, {"wenstrup.house.gov" => 2491}]
|
data/lib/statement/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: statement
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Willis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|