Remove arbitrary hard-coded iteration limit

This commit is contained in:
Kiril Kovachev 2023-09-01 19:16:18 +01:00
parent de4d24c97c
commit 85f3c9cde7

View File

@ -15,7 +15,7 @@ def main() -> None:
with open("words-to-edit.txt") as f:
words_to_fix = f.read().splitlines()
for page in kovachevbot.iterate_safe((kovachevbot.wikt_page(word) for word in words_to_fix), max_entries=1):
for page in kovachevbot.iterate_safe((kovachevbot.wikt_page(word) for word in words_to_fix)):
page: pywikibot.Page
title = page.title()
parsed = mwparserfromhell.parse(page.text)