Sha256: a78a9d36c97a65e94967eebc8db45f046f474f1b662bbd030edcc28c2d4192da

Contents?: true

Size: 592 Bytes

Versions: 12

Compression:

Stored size: 592 Bytes

Contents

class GetURL

    def initialize(street, zip, state)
    
    #Turn street string into string to add to URL
    address_array = street.scan(/\w+/)
    address_string = ""
    x = 0
    while x < address_array.length - 1
    address_string += address_array[x] + "%20"
    x += 1
    end
    address_string += address_array[address_array.length-1]
    
    #Add street string + zip to url
    site = "https://secure.everyaction.com/p/VRl-GNlm_0mCSWaMc4d6_w2?pc=#{zip}&add1=#{address_string}&results=True"
    
    #send formatted URL to Selenium
    SeleniumScraper.new(site, state)
    end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
my-congress-0.2.2 lib/get_url.rb
my-congress-0.2.1 lib/get_url.rb
my-congress-0.2.0 lib/get_url.rb
my-congress-0.1.9 lib/get_url.rb
my-congress-0.1.8 lib/get_url.rb
my-congress-0.1.7 lib/get_url.rb
my-congress-0.1.6 lib/get_url.rb
my-congress-0.1.5 lib/get_url.rb
my-congress-0.1.4 lib/get_url.rb
my-congress-0.1.3 lib/get_url.rb
my-congress-0.1.2 lib/get_url.rb
my-congress-0.1.1 lib/get_url.rb