From 7e1d3886804bb78bfa6bd57b1b78494a35da67a0 Mon Sep 17 00:00:00 2001 From: PolarisLo <46739161+PolarisLo@users.noreply.github.com> Date: Thu, 17 Jan 2019 11:46:43 +0100 Subject: [PATCH] Fixing URL issue --- wikia/wikia.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wikia/wikia.py b/wikia/wikia.py index 1f96c79..63f15fa 100644 --- a/wikia/wikia.py +++ b/wikia/wikia.py @@ -233,8 +233,7 @@ def __load(self, redirect=True, preload=False): self.pageid = query['id'] self.title = query['title'] lang = query_params['lang'] - self.url = STANDARD_URL.format(lang=lang, sub_wikia=self.sub_wikia, - page=self.title) + self.url = STANDARD_URL.format(lang=lang, sub_wikia=self.sub_wikia, page=self.title.replace(' ','_')) def __continued_query(self, query_params): ''' @@ -258,7 +257,7 @@ def __continued_query(self, query_params): if 'generator' in query_params: yield from pages.values() else: - yield from pages[self.pageid][prop]: + yield from pages[self.pageid][prop] if 'continue' not in request: break