Skip to content

Commit

Permalink
Less output
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtmtmtm committed Jul 19, 2015
1 parent 0b31d89 commit 5e3b57a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scraper.rb
Expand Up @@ -43,7 +43,6 @@ def scrape_term(id, url)
name = tr.css('span.picturename').text
# Multiple broken variations on official site
name = "Tina Rose Muña Barnes" if name =~ /Tina.*Barnes/
puts "no problem with #{name} = #{name.encoding}"
rescue
puts "problem with #{name} = #{name.encoding}"
next
Expand All @@ -68,7 +67,7 @@ def scrape_term(id, url)
end

data[:image] = URI.join(url, URI.escape(data[:image])).to_s unless data[:image].to_s.empty?
puts data
# puts data
ScraperWiki.save_sqlite([:name, :term], data)
end
end
Expand Down

0 comments on commit 5e3b57a

Please sign in to comment.