module Janis module Parsing module SpecificParsers class SimpleParser < ProxyWebsiteParser PROXY_REGEX = /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\:\d{1,5}/ def initialize super @html_doc = obtain_html_doc end def parse @result ||= @html_doc.to_s.scan(PROXY_REGEX) end def self.url 'file://./test/html/simple.html' end end end end end