use https for wikipedia api endpoint V03.02.01
authorymh <ymh.work@gmail.com>
Tue, 12 Sep 2017 18:49:02 +0200
changeset 683 59d49ab04ded
parent 682 e2c36fdf4c53
child 684 1dba184deb20
use https for wikipedia api endpoint
src/hdalab/__init__.py
src/hdalab/management/commands/query_category_inclusion.py
src/hdalab/management/commands/query_wikipedia_category.py
src/hdalab/settings.py
--- a/src/hdalab/__init__.py	Wed Apr 06 12:13:14 2016 +0200
+++ b/src/hdalab/__init__.py	Tue Sep 12 18:49:02 2017 +0200
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 from __future__ import absolute_import
 
-VERSION = (3, 2, 0, "final", 0)
+VERSION = (3, 2, 1, "final", 0)
 
 
 def get_version():
--- a/src/hdalab/management/commands/query_category_inclusion.py	Wed Apr 06 12:13:14 2016 +0200
+++ b/src/hdalab/management/commands/query_category_inclusion.py	Tue Sep 12 18:49:02 2017 +0200
@@ -42,7 +42,7 @@
             action='store',
             type='string',
             dest='site_url',
-            default="http://fr.wikipedia.org/w/api.php",
+            default="https://fr.wikipedia.org/w/api.php",
             help='the url for the wikipedia site'),
         make_option('--limit',
             action='store',
--- a/src/hdalab/management/commands/query_wikipedia_category.py	Wed Apr 06 12:13:14 2016 +0200
+++ b/src/hdalab/management/commands/query_wikipedia_category.py	Tue Sep 12 18:49:02 2017 +0200
@@ -62,7 +62,7 @@
             action='store',
             type='string',
             dest='site_url',
-            default="http://fr.wikipedia.org/w/api.php",
+            default="https://fr.wikipedia.org/w/api.php",
             help='the url for the wikipedia site'),
         make_option('--limit',
             action='store',
--- a/src/hdalab/settings.py	Wed Apr 06 12:13:14 2016 +0200
+++ b/src/hdalab/settings.py	Tue Sep 12 18:49:02 2017 +0200
@@ -168,7 +168,7 @@
 }
 DEFAULT_RENKAN_ICON = "thumbnails/renkan/renkan_default_icon.png"
 
-WIKIPEDIA_API_URL = "http://fr.wikipedia.org/w/api.php"
+WIKIPEDIA_API_URL = "https://fr.wikipedia.org/w/api.php"
 WIKIPEDIA_VERSION_PERMALINK_TEMPLATE = "http://fr.wikipedia.org/w/index.php?oldid=%s"
 DBPEDIA_URI_TEMPLATE = "http://fr.dbpedia.org/%s/%s"
 #DBPEDIA_URI_TEMPLATE = "http://fr.dbpedia.org/resource/%s"