pirj / tor-privoxy

Tor-privoxy is a Ruby Mechanize wrapper to access the web with mechanize via Tor/Privoxy It allows to use multiple Privoxy instances, switch endpoints, switch proxy when you get 4xx HTTP code Useful for web robots, scanners, grabbers when accessing sites which may ban/block you unexpectedly
84 stars 28 forks source link

stack level too deep #7

Closed tehPlayer closed 7 years ago

tehPlayer commented 8 years ago

Hey,

Great job with this gem. After using for longer period, after couple 403 responses, the gem raises stack level too deep error. Is there any possibility to fix it?

pirj commented 8 years ago

Hey @tehPlayer, do you have the backtrace?

tehPlayer commented 8 years ago

Hey,

Line 63 in my_scraper.rb is agent.get 'http://url_im_scraping.com' Line 55 is just initialization of your gem Here you are:

  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:34:in `switch_circuit'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:15:in `method_missing'
  from my_scraper.rb:63:in `block in <main>'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:11:in `call'
  from /Users/marcinadamczyk/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:11:in `initialize'
  from my_scraper.rb:56:in `new'
  from my_scraper.rb:56:in `<main>'
pirj commented 8 years ago

What is in the block you pass in when creating an agent?

pirj commented 7 years ago

@tehPlayer Please provide more details, it's quite hard to figure out your use case. Feel free to reopen the issue then.

Mehonoshin commented 3 years ago

I get the same issue with the following code:

require 'tor-privoxy'

agent = TorPrivoxy::Agent.new '127.0.0.1', nil, {8118 => 9050} do |a|
  a.user_agent_alias = 'Mac Safari'
  page = a.get "http://zqktlwi4fecvo6ri.onion/wiki/Main_Page"
  puts page.body
end
Mehonoshin commented 3 years ago
           9: from /home/mexx/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:14:in `method_missing'
           8: from /home/mexx/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:18:in `rescue in method_missing'
           7: from /home/mexx/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:24:in `switch_circuit'
           6: from /home/mexx/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/tor-privoxy-0.1.1/lib/tor-privoxy/agent.rb:24:in `new'
           5: from /home/mexx/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/net-telnet-0.2.0/lib/net/telnet.rb:349:in `initialize'
           4: from /home/mexx/.rbenv/versions/2.7.1/lib/ruby/2.7.0/timeout.rb:105:in `timeout'
           3: from /home/mexx/.rbenv/versions/2.7.1/lib/ruby/2.7.0/timeout.rb:95:in `block in timeout'
           2: from /home/mexx/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/net-telnet-0.2.0/lib/net/telnet.rb:350:in `block in initialize'
           1: from /home/mexx/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/net-telnet-0.2.0/lib/net/telnet.rb:350:in `open'
/home/mexx/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/net-telnet-0.2.0/lib/net/telnet.rb:350:in `initialize': Too many open files - socket(2) for "127.0.0.1" port 9050 (Errno::EMFILE)
pirj commented 3 years ago
                                                                                  I don't use this library myself for years.A pull request is welcome, I'll happily merge it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        From: Stanislav MekhonoshinSent: Saturday, 24 July 2021 15:36To: pirj/tor-privoxyReply To: pirj/tor-privoxyCc: Phil Pirozhkov; State changeSubject: Re: [pirj/tor-privoxy] stack level too deep (#7)

I get the same issue with the following code: require 'tor-privoxy'

agent = TorPrivoxy::Agent.new '127.0.0.1', nil, {8118 => 9050} do |a| a.user_agent_alias = 'Mac Safari' page = a.get "http://zqktlwi4fecvo6ri.onion/wiki/Main_Page" puts page.body end

—You are receiving this because you modified the open/close state.Reply to this email directly, view it on GitHub, or unsubscribe. [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/pirj/tor-privoxy/issues/7#issuecomment-886047662", "url": "https://github.com/pirj/tor-privoxy/issues/7#issuecomment-886047662", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } } ]