jenkins-bot submitted this change.
[IMPR] preload pages in commons_information.py
The script is up tp 10 times faster.
Change-Id: I7ab108188660889cb27900443c0b2dba3ce5c9cf
---
M scripts/commons_information.py
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/scripts/commons_information.py b/scripts/commons_information.py
index 138f842..2cf69eb 100755
--- a/scripts/commons_information.py
+++ b/scripts/commons_information.py
@@ -17,6 +17,9 @@
python pwb.py commons_information -start:File:!
+.. versionadded:: 6.0
+.. versionchanged:: 9.2
+ accelerated script with preloading pages.
"""
#
# (C) Pywikibot team, 2015-2024
@@ -181,7 +184,7 @@
for arg in local_args:
gen_factory.handle_arg(arg)
- gen = gen_factory.getCombinedGenerator()
+ gen = gen_factory.getCombinedGenerator(preload=True)
if gen:
bot = InformationBot(generator=gen)
bot.run()
To view, visit change 1030276. To unsubscribe, or for help writing mail filters, visit settings.