first tutorial sample program generates run error - help?
-
cyberkid81
Fixed, partially by running these three commands:
gem uninstall hpricot mechanize gem install hpricot -v=0.6.164 gem install mechanize -v=0.8.5I now get an error when the Dumper runs, but the scraping looks to have worked.
./google.rb
<result>Ruby Programming Language</result> <result>Download Ruby</result> <result>Ruby - The Inspirational Weight Loss Journey on the Style Network ...</result> <result>Ruby (programming language) - Wikipedia, the free encyclopedia</result> <result>Ruby - Wikipedia, the free encyclopedia</result> <result>Ruby on Rails</result> <result>Ruby&#39;s Diner - rubys.com</result> <result>Ruby Annotation</result> <result>Watir</result> <result>[Ruby-Doc.org: Documenting the Ruby Language]</result> <result>News for ruby</result> <result>Books for ruby</result>/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:440:in
load_missing_constant': uninitialized constant Scrubyt::ResultDumper (NameError)from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const_missing' from ./google.rb:15 -
cyberkid81
i see from the code its self that the dumper is no longer working. i guess i won't use it.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.