Skip to content

Commit

Permalink
Update for end-of-term page moves
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtmtmtm committed Apr 11, 2017
1 parent a3107b7 commit 527968f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scraper.rb
@@ -1,14 +1,14 @@
require 'wikidata/fetcher'

nl_names = EveryPolitician::Wikidata.wikipedia_xpath(
url: 'https://nl.wikipedia.org/wiki/Samenstelling_Tweede_Kamer_2012-heden',
after: '//h2[contains(.,"Samenstelling van")]',
url: 'https://nl.wikipedia.org/wiki/Samenstelling_Tweede_Kamer_2012-2017',
after: '//h2[contains(.,"Gekozen bij de verkiezingen van 12 september 2012")]',
before: '//span[@id="Bijzonderheden"]',
xpath: './/li//a[not(@class="new")]/@title',
)

en_names = EveryPolitician::Wikidata.wikipedia_xpath(
url: 'https://en.wikipedia.org/wiki/Members_of_the_House_of_Representatives_of_the_Netherlands,_2012%E2%80%93present',
url: 'https://en.wikipedia.org/wiki/List_of_members_of_the_House_of_Representatives_of_the_Netherlands,_2012–17',
after: '//h2[contains(.,"Parties")]',
before: '//span[@id="References"]',
xpath: './/li//a[not(@class="new")]/@title',
Expand Down

0 comments on commit 527968f

Please sign in to comment.