Skip to content

Commit

Permalink
Merge pull request #1 from everypolitician-scrapers/14880-broken-scra…
Browse files Browse the repository at this point in the history
…per-south-africa

Fix failing scraper (issue 14880)
  • Loading branch information
tmtmtmtm committed Aug 1, 2016
2 parents dbc5f3d + 93007a1 commit c0a37ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.rb
Expand Up @@ -6,6 +6,6 @@

names = EveryPolitician::Wikidata.wikipedia_xpath(
url: 'https://en.wikipedia.org/wiki/Template:Current_MPs_of_South_Africa',
xpath: '//table[@class="navbox"]//table//tr[td]/td[1]//a[not(@class="new")]/@title',
)
xpath: '//div[@class="navbox"]//table//tr[td]/td[1]//a[not(@class="new")]/@title',
)
EveryPolitician::Wikidata.scrape_wikidata(names: { en: names })

0 comments on commit c0a37ac

Please sign in to comment.