diff options
| author | 2025-12-06 05:11:42 +0100 | |
|---|---|---|
| committer | 2025-12-06 05:12:22 +0100 | |
| commit | 95744e99702148a0aae0d9dddd4d4215b70ee7ae (patch) | |
| tree | a245037445f7acc7b18fedb2f8019a61e5cca933 | |
| parent | wikibot(wbmexclusions): modify regex to get url (diff) | |
wb(wbmexcl): use page.allpages(prefix=) rather than loop
| -rw-r--r-- | wikibot/wbmexclusions.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/wikibot/wbmexclusions.py b/wikibot/wbmexclusions.py index 47e25af..f97adae 100644 --- a/wikibot/wbmexclusions.py +++ b/wikibot/wbmexclusions.py @@ -56,8 +56,7 @@ def handle_page(site, page): def main(): site = mwclient.Site('wiki.archiveteam.org', path = '/') - for page in site.Pages: - if not page.name.startswith('List of websites excluded from the Wayback Machine'): continue + for page in site.allpages(prefix = 'List of websites excluded from the Wayback Machine'): handle_page(site, page) main() |
