Skip to content

Commit

Permalink
Merge pull request #2 from everypolitician-scrapers/scrape-area-for-a…
Browse files Browse the repository at this point in the history
…lderney-representatives

Scrape area for Alderney Representatives
  • Loading branch information
tmtmtmtm committed Nov 8, 2016
2 parents c0afa1a + a7ad7a5 commit 070ac10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/member_page.rb
Expand Up @@ -8,7 +8,10 @@ class MemberPage < Page
end

field :area do
noko.xpath("id('Breadcrumb')/li[5]/a").text.tidy
noko.xpath("id('Breadcrumb')/li[last() - 1]")
.text
.sub('Representatives', '')
.tidy
end

field :party do
Expand Down

0 comments on commit 070ac10

Please sign in to comment.