def parse_index(text, selector)
      Nokogiri::HTML(text).search(selector).to_a.map do |a_element|
        href = a_element["href"]
        resolved_url = resolve_url( href, @index_url) unless href.nil?
        puts "resolved #{href} to #{resolved_url}" if @verbose && resolved_url != href
        resolved_url
      end
    end
def parse_index(text, selector)
      Nokogiri::HTML(text).search(selector).to_a.map do |a_element|
        href = a_element["href"]
        resolved_url = resolve_url( href, @index_url) unless href.nil?
        puts "resolved #{href} to #{resolved_url}" if @verbose && resolved_url != href
        resolved_url
      end
    end
TODO: Not sure the best way to handle this
 Currently, #parse_index is called upon #get_index_pages,
  which itself is dependent on @index_url
 Does @index_url stay unaltered for the lifetime of the Upton instance?
 It seems to at this point, but that may be something that gets
  deprecated later

 So for now, @index_url is used in conjunction with resolve_url
 to make sure that this method returns absolute urls
 i.e. this method expects @index_url to always have an absolute address
 for the lifetime of an Upton instance