Sha256: 640103cc3d8a215bc6ef33d82544ee1316133918980f37f57d22effb775f3f02

Contents?: true

Size: 789 Bytes

Versions: 2

Compression:

Stored size: 789 Bytes

Contents

load File.dirname(__FILE__) + '/response/get_proxy.rb'
module HttpCrawler
  module Proxy
    module TestProxyApi
      class Client

        include(HttpCrawler::Client)
        include(HttpCrawler::Proxy::Client)

        class << self
          def new(*args)
            @client ||= super(*args)
          end
        end

        def init_uri
          @uri = URI("http://127.0.0.1:1111/")
        end

        # http://39.108.59.38:7772/Tools/proxyIP.ashx?OrderNumber=ccd4c8912691f28861a1ed048fec88dc&poolIndex=22717&cache=1&qty=2
        def get_proxy(parameter = {})
          r = http.get_fetch("/api/get_proxy")
          r.extend(HttpCrawler::Proxy::Laofu::Response::GetProxy)
        end

      end
    end # module BiQuGe_DuQuanBen
  end # module Web
end # module HttpCrawler

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
http_crawler-0.2.2.5 lib/http_crawler/proxy/test_proxy_api/client.rb
http_crawler-0.2.2.4 lib/http_crawler/proxy/test_proxy_api/client.rb