Skip to content

Commit

Permalink
Add some members by ID
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtmtmtm committed Jan 25, 2017
1 parent 1489b30 commit 8b942fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
xpath: '//h2/following-sibling::ul//a[contains(@href, "/wiki/") and not(@class="new")]/@title',
)

by_id = %w(Q28167615 Q2037525 Q22956366 Q16167420 Q28528045 Q23311251 Q331736)

scraped = EveryPolitician::Wikidata.morph_wikinames(source: 'tmtmtmtm/denmark-folketing-wp', column: 'wikiname')
category = WikiData::Category.new( "Kategori:Folketingsmedlemmer i 2010'erne", 'da').member_titles

EveryPolitician::Wikidata.scrape_wikidata(names: { da: wp2015 | wp2011 | scraped | category })
EveryPolitician::Wikidata.scrape_wikidata(ids: by_id, names: { da: wp2015 | wp2011 | scraped | category })

0 comments on commit 8b942fa

Please sign in to comment.