A simple Whois server with a simple simple API and a front-end built with AngularJS.

unirest_parser.rb 404B

    require 'json' require 'ostruct' require 'unirest' require "resolv-replace.rb" class UnirestParser def self.parse(url) response = Unirest.get "https://jsonwhois.com/api/v1/whois", headers:{ "Accept" => "application/json", "Authorization" => "Token token=4514034cfe7c71a79dbe105ab3e1c6b3" }, parameters:{ "domain" => url } return JSON.pretty_generate(response.body) end end