Skip to content

Commit

Permalink
Start scrape voted Rada9
Browse files Browse the repository at this point in the history
  • Loading branch information
beastie87 committed Sep 12, 2019
1 parent c87099e commit 4491625
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
# Ignore output of scraper
data.sqlite
2 changes: 1 addition & 1 deletion scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def person_name_to_id(abbreviated_name, faction_name)
when "Бордюг І.Л."
"18040"
else
@name_ids ||= morph_scraper_query("openaustralia/ukraine_verkhovna_rada_deputies", "select name, id from 'data'")
@name_ids ||= morph_scraper_query("beastie87/ukraine_verkhovna_rada_deputies", "select name, id from 'data'")
if deputy = @name_ids.find { |r| full_name_to_abbreviated(r["name"]) == abbreviated_name }
deputy["id"]
else
Expand Down

0 comments on commit 4491625

Please sign in to comment.