class Knj::Degulesider def initialize(args = {}) @args = args @http = Knj::Http.new( "host" => "www.degulesider.dk" ) end def search(sargs) url = "/search/#{Php4r.urlencode(sargs[:where])}/-/1/" html = @http.get(url) ret = [] tbody_match = html["data"].match(//) do |match| res = {} if title_match = match[1].match(/

(.+)<\/a><\/h2>/) res[:name] = title_match[1] end if phone_match = match[1].match(/