diff --git a/README.md b/README.md
index aa3b141..6977c9f 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@ Requirements
*nemubot* requires at least Python 3.3 to work.
Some modules (like `cve`, `nextstop` or `laposte`) require the
-[BeautifulSoup module](http://www.crummy.com/software/BeautifulSoup/),
+[BeautifulSoup module](https://www.crummy.com/software/BeautifulSoup/),
but the core and framework has no dependency.
diff --git a/modules/conjugaison.py b/modules/conjugaison.py
index 42d78c6..c953da3 100644
--- a/modules/conjugaison.py
+++ b/modules/conjugaison.py
@@ -36,7 +36,7 @@ for k, v in s:
# MODULE CORE #########################################################
def get_conjug(verb, stringTens):
- url = ("http://leconjugueur.lefigaro.fr/conjugaison/verbe/%s.html" %
+ url = ("https://leconjugueur.lefigaro.fr/conjugaison/verbe/%s.html" %
quote(verb.encode("ISO-8859-1")))
page = web.getURLContent(url)
diff --git a/modules/mapquest.py b/modules/mapquest.py
index 5662a49..f328e1d 100644
--- a/modules/mapquest.py
+++ b/modules/mapquest.py
@@ -13,7 +13,7 @@ from nemubot.module.more import Response
# GLOBALS #############################################################
-URL_API = "http://open.mapquestapi.com/geocoding/v1/address?key=%s&location=%%s"
+URL_API = "https://open.mapquestapi.com/geocoding/v1/address?key=%s&location=%%s"
# LOADING #############################################################
@@ -23,7 +23,7 @@ def load(context):
raise ImportError("You need a MapQuest API key in order to use this "
"module. Add it to the module configuration file:\n"
"\nRegister at http://developer.mapquest.com/")
+ "/>\nRegister at https://developer.mapquest.com/")
global URL_API
URL_API = URL_API % context.config["apikey"].replace("%", "%%")
diff --git a/modules/networking/isup.py b/modules/networking/isup.py
index c518900..99e2664 100644
--- a/modules/networking/isup.py
+++ b/modules/networking/isup.py
@@ -11,7 +11,7 @@ def isup(url):
o = urllib.parse.urlparse(getNormalizedURL(url), "http")
if o.netloc != "":
- isup = getJSON("http://isitup.org/%s.json" % o.netloc)
+ isup = getJSON("https://isitup.org/%s.json" % o.netloc)
if isup is not None and "status_code" in isup and isup["status_code"] == 1:
return isup["response_time"]
diff --git a/modules/networking/w3c.py b/modules/networking/w3c.py
index 83056dd..3c8084f 100644
--- a/modules/networking/w3c.py
+++ b/modules/networking/w3c.py
@@ -17,7 +17,7 @@ def validator(url):
raise IMException("Indicate a valid URL!")
try:
- req = urllib.request.Request("http://validator.w3.org/check?uri=%s&output=json" % (urllib.parse.quote(o.geturl())), headers={ 'User-Agent' : "Nemubot v%s" % __version__})
+ req = urllib.request.Request("https://validator.w3.org/check?uri=%s&output=json" % (urllib.parse.quote(o.geturl())), headers={ 'User-Agent' : "Nemubot v%s" % __version__})
raw = urllib.request.urlopen(req, timeout=10)
except urllib.error.HTTPError as e:
raise IMException("HTTP error occurs: %s %s" % (e.code, e.reason))
diff --git a/modules/networking/whois.py b/modules/networking/whois.py
index 787cd17..999dc01 100644
--- a/modules/networking/whois.py
+++ b/modules/networking/whois.py
@@ -9,7 +9,7 @@ from nemubot.tools.web import getJSON
from nemubot.module.more import Response
URL_AVAIL = "https://www.whoisxmlapi.com/whoisserver/WhoisService?cmd=GET_DN_AVAILABILITY&domainName=%%s&outputFormat=json&username=%s&password=%s"
-URL_WHOIS = "http://www.whoisxmlapi.com/whoisserver/WhoisService?da=2&domainName=%%s&outputFormat=json&userName=%s&password=%s"
+URL_WHOIS = "https://www.whoisxmlapi.com/whoisserver/WhoisService?da=2&domainName=%%s&outputFormat=json&userName=%s&password=%s"
# LOADING #############################################################
@@ -22,7 +22,7 @@ def load(CONF, add_hook):
"the !netwhois feature. Add it to the module "
"configuration file:\n\nRegister at "
- "http://www.whoisxmlapi.com/newaccount.php")
+ "https://www.whoisxmlapi.com/newaccount.php")
URL_AVAIL = URL_AVAIL % (urllib.parse.quote(CONF.getNode("whoisxmlapi")["username"]), urllib.parse.quote(CONF.getNode("whoisxmlapi")["password"]))
URL_WHOIS = URL_WHOIS % (urllib.parse.quote(CONF.getNode("whoisxmlapi")["username"]), urllib.parse.quote(CONF.getNode("whoisxmlapi")["password"]))
diff --git a/modules/reddit.py b/modules/reddit.py
index 2de7612..d4def85 100644
--- a/modules/reddit.py
+++ b/modules/reddit.py
@@ -40,7 +40,7 @@ def cmd_subreddit(msg):
else:
where = "r"
- sbr = web.getJSON("http://www.reddit.com/%s/%s/about.json" %
+ sbr = web.getJSON("https://www.reddit.com/%s/%s/about.json" %
(where, sub.group(2)))
if sbr is None:
diff --git a/modules/sap.py b/modules/sap.py
index a6168a2..0b9017f 100644
--- a/modules/sap.py
+++ b/modules/sap.py
@@ -25,7 +25,7 @@ def cmd_tcode(msg):
raise IMException("indicate a transaction code or "
"a keyword to search!")
- url = ("http://www.tcodesearch.com/tcodes/search?q=%s" %
+ url = ("https://www.tcodesearch.com/tcodes/search?q=%s" %
urllib.parse.quote(msg.args[0]))
page = web.getURLContent(url)
diff --git a/modules/syno.py b/modules/syno.py
index bda0456..6f6a625 100644
--- a/modules/syno.py
+++ b/modules/syno.py
@@ -53,7 +53,7 @@ def get_french_synos(word):
def get_english_synos(key, word):
- cnt = web.getJSON("http://words.bighugelabs.com/api/2/%s/%s/json" %
+ cnt = web.getJSON("https://words.bighugelabs.com/api/2/%s/%s/json" %
(quote(key), quote(word.encode("ISO-8859-1"))))
best = list(); synos = list(); anton = list()
diff --git a/modules/urbandict.py b/modules/urbandict.py
index a897fad..b561e89 100644
--- a/modules/urbandict.py
+++ b/modules/urbandict.py
@@ -14,7 +14,7 @@ from nemubot.module.more import Response
def search(terms):
return web.getJSON(
- "http://api.urbandictionary.com/v0/define?term=%s"
+ "https://api.urbandictionary.com/v0/define?term=%s"
% quote(' '.join(terms)))
diff --git a/modules/virtualradar.py b/modules/virtualradar.py
index 9382d3b..2c87e79 100644
--- a/modules/virtualradar.py
+++ b/modules/virtualradar.py
@@ -15,7 +15,7 @@ from nemubot.module import mapquest
# GLOBALS #############################################################
-URL_API = "http://public-api.adsbexchange.com/VirtualRadar/AircraftList.json?fcallC=%s"
+URL_API = "https://public-api.adsbexchange.com/VirtualRadar/AircraftList.json?fcallC=%s"
SPEED_TYPES = {
0: 'Ground speed',
diff --git a/modules/weather.py b/modules/weather.py
index 96fd718..9b36470 100644
--- a/modules/weather.py
+++ b/modules/weather.py
@@ -59,7 +59,7 @@ def load(context):
raise ImportError("You need a Dark-Sky API key in order to use this "
"module. Add it to the module configuration file:\n"
"\n"
- "Register at http://developer.forecast.io/")
+ "Register at https://developer.forecast.io/")
context.data.setIndex("name", "city")
global URL_DSAPI
URL_DSAPI = URL_DSAPI % context.config["darkskyapikey"]
diff --git a/modules/wolframalpha.py b/modules/wolframalpha.py
index b7cc7fb..fc83815 100644
--- a/modules/wolframalpha.py
+++ b/modules/wolframalpha.py
@@ -15,7 +15,7 @@ from nemubot.module.more import Response
# LOADING #############################################################
-URL_API = "http://api.wolframalpha.com/v2/query?input=%%s&format=plaintext&appid=%s"
+URL_API = "https://api.wolframalpha.com/v2/query?input=%%s&format=plaintext&appid=%s"
def load(context):
global URL_API
@@ -24,7 +24,7 @@ def load(context):
"this module. Add it to the module configuration: "
"\n\n"
- "Register at http://products.wolframalpha.com/api/")
+ "Register at https://products.wolframalpha.com/api/")
URL_API = URL_API % quote(context.config["apikey"]).replace("%", "%%")
diff --git a/nemubot/bot.py b/nemubot/bot.py
index 28df8ce..6aa5ed6 100644
--- a/nemubot/bot.py
+++ b/nemubot/bot.py
@@ -135,7 +135,7 @@ class Bot(threading.Thread):
"Vous pouvez le consulter, le dupliquer, "
"envoyer des rapports de bogues ou bien "
"contribuer au projet sur GitHub : "
- "http://github.com/nemunaire/nemubot/")
+ "https://github.com/nemunaire/nemubot/")
res.append_message(title="Pour plus de détails sur un module, "
"envoyez \"!help nomdumodule\". Voici la liste"
" de tous les modules disponibles localement",
diff --git a/nemubot/server/__init__.py b/nemubot/server/__init__.py
index 068d152..a39c491 100644
--- a/nemubot/server/__init__.py
+++ b/nemubot/server/__init__.py
@@ -22,8 +22,8 @@ def factory(uri, ssl=False, **init_args):
srv = None
if o.scheme == "irc" or o.scheme == "ircs":
- # http://www.w3.org/Addressing/draft-mirashi-url-irc-01.txt
- # http://www-archive.mozilla.org/projects/rt-messaging/chatzilla/irc-urls.html
+ # https://www.w3.org/Addressing/draft-mirashi-url-irc-01.txt
+ # https://www-archive.mozilla.org/projects/rt-messaging/chatzilla/irc-urls.html
args = init_args
if o.scheme == "ircs": ssl = True