diff options
author | Pacien TRAN-GIRARD | 2014-10-22 08:32:06 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-10-22 08:32:06 +0200 |
commit | aed27f919c4d24f13e725c593c9d4e2e480613ee (patch) | |
tree | dbdd6b4d2ef6dfdd3429bcff70dc7dd540e7784a | |
parent | b3651e48e4cb1d90863da1d22997eff59eff74c1 (diff) | |
download | wikistats-aed27f919c4d24f13e725c593c9d4e2e480613ee.tar.gz |
Use proper working way to construct url
-rw-r--r-- | src/downloader/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/downloader/__init__.py b/src/downloader/__init__.py index 830bdec..340ca7b 100644 --- a/src/downloader/__init__.py +++ b/src/downloader/__init__.py | |||
@@ -94,4 +94,5 @@ class WikimediaAPI(): | |||
94 | "format": self.return_format, | 94 | "format": self.return_format, |
95 | "namespace": rcnamespaces[namespace], | 95 | "namespace": rcnamespaces[namespace], |
96 | } | 96 | } |
97 | return urllib.parse.urljoin(self.endpoint, urllib.parse.urlencode(url_params).encode("utf8")) | 97 | url_params_str = urllib.parse.urlencode(url_params).encode("utf8") |
98 | return urllib.parse.urljoin(self.endpoint, "?" + url_params_str) | ||