Skip to content
This repository was archived by the owner on Mar 2, 2022. It is now read-only.

Commit 7e1d388

Browse files
authored
Fixing URL issue
1 parent 1e0ce20 commit 7e1d388

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

wikia/wikia.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,7 @@ def __load(self, redirect=True, preload=False):
233233
self.pageid = query['id']
234234
self.title = query['title']
235235
lang = query_params['lang']
236-
self.url = STANDARD_URL.format(lang=lang, sub_wikia=self.sub_wikia,
237-
page=self.title)
236+
self.url = STANDARD_URL.format(lang=lang, sub_wikia=self.sub_wikia, page=self.title.replace(' ','_'))
238237

239238
def __continued_query(self, query_params):
240239
'''
@@ -258,7 +257,7 @@ def __continued_query(self, query_params):
258257
if 'generator' in query_params:
259258
yield from pages.values()
260259
else:
261-
yield from pages[self.pageid][prop]:
260+
yield from pages[self.pageid][prop]
262261

263262
if 'continue' not in request:
264263
break

0 commit comments

Comments
 (0)