scraperwiki / code-scraper-in-browser-tool

Just like on ScraperWiki Classic; now a part of QuickCode.
https://quickcode.io
Other
38 stars 8 forks source link

Ruby tutorial fails on step 2. #69

Closed tehfailsafe closed 11 years ago

tehfailsafe commented 11 years ago

Following the tutorial here returns an error. https://scraperwiki.com/docs/ruby/ruby_intro_tutorial/

!/usr/bin/env ruby

require 'scraperwiki' html = ScraperWiki::scrape("http://web.archive.org/web/20110514112442/http://unstats.un.org/unsd/demographic/products/socind/education.htm")

Results in this error after running. /var/lib/gems/1.9.1/gems/scraperwiki-2.0.2/lib/scraperwiki.rb:22:in scrape': uninitialized constant ScraperWiki::HTTPClient (NameError) from ./code/scraper:5:in

'

frabcus commented 11 years ago

Thanks for reporting this!

The error is because of a bug in scraperwiki-ruby. I've add a test, fixed that and deployed it. The tutorial should work now.