Created
May 3, 2016 03:00
-
-
Save anonymous/64e34a6af7a5d5947bdf58f64161c4cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'nokogiri' | |
require 'socksify' | |
require 'open-uri' | |
TCPSocket::socks_server = 'localhost' | |
TCPSocket::socks_port = 9999 | |
p Nokogiri::HTML(open("http://www.ipchicken.com")).text | |
TCPSocket::socks_server = nil | |
TCPSocket::socks_port = nil | |
p Nokogiri::HTML(open("http://www.ipchicken.com")).text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment