title: How to scrape a website with the socksify gem (proxy)
body: <p>I am reading through the documentation of the <a href="http://socksify.rubyforge.org/" rel="nofollow">socksify gem</a> on Rubyforge. I have installed the gem successfully, and I have run this documented code with success to test that my local implementation can replicate it:</p>
  
  <pre><code>require 'socksify/http'
  uri = URI.parse('http://rubyforge.org/')
  Net::HTTP.SOCKSProxy('127.0.0.1', 9050).start(uri.host, uri.port) do |http|
    http.get(uri.path)
  end
  # =&gt; #&lt;Net::HTTPOK 200 OK readbody=true&gt;
  </code></pre>
  
  <p>But how do I e.g. scrape <code>'http://google.com/'</code>, and get the html content? I wish to parse it with e.g. Nokogiri like this:</p>
  
  <pre><code>Nokogiri::HTML(open("http://google.com/))
  </code></pre>