Closed tehfailsafe closed 11 years ago
Following the tutorial here returns an error. https://scraperwiki.com/docs/ruby/ruby_intro_tutorial/
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'
scrape': uninitialized constant ScraperWiki::HTTPClient (NameError) from ./code/scraper:5:in
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.
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