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

Commit

Permalink
Whitespace changes only
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Apr 29, 2015
1 parent 4abe578 commit 794b7cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.rb
Expand Up @@ -25,7 +25,7 @@ def scrape_table(doc, comment_url)
'description' => CGI::unescapeHTML(clean_whitespace(h[3].split('<br>')[1..-1].join)),
'date_scraped' => Date.today.to_s
}

#pp record
if (ScraperWiki.select("* from data where `council_reference`='#{record['council_reference']}'").empty? rescue true)
ScraperWiki.save_sqlite(['council_reference'], record)
Expand All @@ -40,7 +40,7 @@ def scrape_and_follow_next_link(doc, comment_url)
nextButton = doc.at('.rgPageNext')
unless nextButton.nil? || nextButton['onclick'] =~ /return false/
form = doc.forms.first

# The joy of dealing with ASP.NET
form['__EVENTTARGET'] = nextButton['name']
form['__EVENTARGUMENT'] = ''
Expand Down

0 comments on commit 794b7cb

Please sign in to comment.