From 61f1dca80ead291cbd8dba703ef026af0dda0f8e Mon Sep 17 00:00:00 2001 From: Eric Case Date: Wed, 18 Jun 2014 22:19:05 -0700 Subject: [PATCH 1/2] Add client_id to requests --- plugins/domainr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/domainr.py b/plugins/domainr.py index e853bfa5..96595082 100644 --- a/plugins/domainr.py +++ b/plugins/domainr.py @@ -5,7 +5,7 @@ def domainr(inp): """domainr - Use domain.nr's API to search for a domain, and similar domains.""" try: - data = http.get_json('http://domai.nr/api/json/search?q=' + inp) + data = http.get_json('http://domai.nr/api/json/search?client_id=cloudbot&q=' + inp) except (http.URLError, http.HTTPError) as e: return "Unable to get data for some reason. Try again later." if data['query'] == "": From 0693819ee0b9f86ccbc8f69f334a41f66aef01c2 Mon Sep 17 00:00:00 2001 From: Eric Case Date: Fri, 17 Oct 2014 14:26:36 -0700 Subject: [PATCH 2/2] domai.nr -> domainr.com (we've updated the endpoint) --- plugins/domainr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/domainr.py b/plugins/domainr.py index 96595082..d5df4e79 100644 --- a/plugins/domainr.py +++ b/plugins/domainr.py @@ -5,7 +5,7 @@ def domainr(inp): """domainr - Use domain.nr's API to search for a domain, and similar domains.""" try: - data = http.get_json('http://domai.nr/api/json/search?client_id=cloudbot&q=' + inp) + data = http.get_json('https://domainr.com/api/json/search?client_id=cloudbot&q=' + inp) except (http.URLError, http.HTTPError) as e: return "Unable to get data for some reason. Try again later." if data['query'] == "":