Skip to content

Commit

Permalink
Store all identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtmtmtm committed Sep 9, 2015
1 parent c72b040 commit 8710be7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.rb
Expand Up @@ -37,7 +37,6 @@ def scrape_list(url)
term = person['terms'].last
data = {
id: person['id']['bioguide'],
wikipedia__en: person['id']['wikipedia'],
name: person['name']['official_full'],
image: "https://theunitedstates.io/images/congress/original/#{person['id']['bioguide']}.jpg",
given_name: person['name']['first'],
Expand All @@ -57,6 +56,7 @@ def scrape_list(url)
term: 114,
}
data[:area_id] = area_from(data)
person['id'].each { |k,v| data["identifier__#{k}".to_sym] = [v].flatten.first }
ScraperWiki.save_sqlite([:id], data)
end
end
Expand Down

0 comments on commit 8710be7

Please sign in to comment.