Created
September 7, 2012 11:50
-
-
Save railscard/3665520 to your computer and use it in GitHub Desktop.
Anemone proxy example
This file contains hidden or 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 'anemone' | |
Anemone.crawl("http://stackoverflow.com/", {:proxy_host => 'proxy.xyz.com', :proxy_port => '9999'}) do |anemone| | |
anemone.on_every_page do |page| | |
puts page.url | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment