Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Commit

Permalink
Update scraper.rb
Browse files Browse the repository at this point in the history
Only squeeze whitespace
  • Loading branch information
CloCkWeRX committed Dec 14, 2018
1 parent 9f61cc2 commit e560410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def has_blank?
record = {
'council_reference' => result.search("td")[0].inner_text.to_s,
'address' => address,
'description' => result.search("td")[2].inner_text.to_s.squeeze,
'description' => result.search("td")[2].inner_text.to_s.squeeze(' '),
'info_url' => info_url + URI::encode_www_form_component(result.search("td")[0].inner_text),
'comment_url' => comment_url,
'date_scraped' => Date.today.to_s,
Expand Down

0 comments on commit e560410

Please sign in to comment.