Skip to content

Commit

Permalink
Merge pull request #1 from krisgesling/master
Browse files Browse the repository at this point in the history
Change council_reference to 9 characters
  • Loading branch information
henare committed Jul 21, 2017
2 parents 6df2a0e + db74d55 commit 5f835f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.rb
Expand Up @@ -15,7 +15,7 @@
next if a.at('div.app_address').nil? # No addresses on this DA

address = a.at('div.app_address').at('p').inner_html.split('<br>')
council_reference = a.at('div.app_map').inner_html.match(/\d{8}/).to_s
council_reference = a.at('div.app_map').inner_html.match(/\d{9}/).to_s

a.search('h6').each do |h|
case h.inner_text
Expand Down

0 comments on commit 5f835f8

Please sign in to comment.