From aed27f919c4d24f13e725c593c9d4e2e480613ee Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Wed, 22 Oct 2014 08:32:06 +0200 Subject: Use proper working way to construct url --- src/downloader/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/downloader') 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(): "format": self.return_format, "namespace": rcnamespaces[namespace], } - return urllib.parse.urljoin(self.endpoint, urllib.parse.urlencode(url_params).encode("utf8")) + url_params_str = urllib.parse.urlencode(url_params).encode("utf8") + return urllib.parse.urljoin(self.endpoint, "?" + url_params_str) -- cgit v1.2.3