Skip to content

Instantly share code, notes, and snippets.

@dtolj
Created September 2, 2009 02:44
Show Gist options
  • Save dtolj/179516 to your computer and use it in GitHub Desktop.
Save dtolj/179516 to your computer and use it in GitHub Desktop.
require 'uri'
require 'net/http'
require 'open-uri'
require 'rubygems'
require 'nokogiri'
require 'optparse'
require 'mechanize'
a = WWW::Mechanize.new { |agent|
agent.user_agent_alias = 'Mac Safari'
}
Traceback
./mechanize.rb:12: uninitialized constant WWW (NameError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from ./parseUrl2.rb:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment