Skip to content

Commit

Permalink
Name variables properly. Duh
Browse files Browse the repository at this point in the history
  • Loading branch information
auxesis committed Oct 28, 2016
1 parent 0c2169b commit 36504f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scraper.rb
Expand Up @@ -16,11 +16,11 @@ def scrub(text)

def get(url)
@agent ||= Mechanize.new
response = @agent.get(url)
p response.class
page = @agent.get(url)
p page.class
p page.header
puts page.content
response
page
end

# This attemps to solve a complicated problem where the information is spread
Expand Down

0 comments on commit 36504f7

Please sign in to comment.