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 'selenium-webdriver' | |
module ScrapeTools | |
def self.connect(base_url) | |
loop do | |
# proxy | |
proxy = ProxyServer.get_round_robin # get a proxy that hasent been used lately | |
puts "[ScrapeTools] trying proxy: #{proxy.as_string}" |