From 7e4f6d06afdcc1887f5e225af550d3d4ab36822c Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Wed, 22 Oct 2014 08:47:10 +0200 Subject: Use proper really working way to construct url --- src/downloader/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/downloader/__init__.py b/src/downloader/__init__.py index 340ca7b..15fba41 100644 --- a/src/downloader/__init__.py +++ b/src/downloader/__init__.py @@ -92,7 +92,7 @@ class WikimediaAPI(): "action": "query", "list": "recentchanges", "format": self.return_format, - "namespace": rcnamespaces[namespace], + "rcnamespace": rcnamespaces[namespace], } - url_params_str = urllib.parse.urlencode(url_params).encode("utf8") + url_params_str = urllib.parse.urlencode(url_params) return urllib.parse.urljoin(self.endpoint, "?" + url_params_str) -- cgit v1.2.3