Skip to content

Commit

Permalink
Updated the URL and the extraction of the date range.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBone committed Apr 24, 2019
1 parent c818128 commit 6f190f6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scraper.rb
Expand Up @@ -22,9 +22,8 @@
next
end

matches = r.search(:td)[3].inner_text.split(' to ')
on_notice_from = Date.parse(matches[0])
on_notice_to = Date.parse(matches[1])
on_notice_from = ''
on_notice_to = Date.parse(r.search(:span.display-date)[0].inner_text)

record = {
council_reference: council_reference,
Expand Down

0 comments on commit 6f190f6

Please sign in to comment.