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

Commit 59134d2

Browse files
moving files to wikia folder
Co-Authored-By: PolarisLo <polarislo@users.noreply.github.com>
1 parent 49520ba commit 59134d2

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

wikia.py renamed to wikia/wikia.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,9 @@ def __continued_query(self, query_params):
256256

257257
pages = request['query']['pages']
258258
if 'generator' in query_params:
259-
for datum in pages.values():
260-
yield datum
259+
yield from pages.values()
261260
else:
262-
for datum in pages[self.pageid][prop]:
263-
yield datum
261+
yield from pages[self.pageid][prop]:
264262

265263
if 'continue' not in request:
266264
break

wikitest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from wikia import wikia
2+
3+
mb = wikia.page("Runescape", "Castle Drakan")
4+
5+
print(mb.title)
6+
print(mb.url)

0 commit comments

Comments
 (0)