jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1030276?usp=email )
Change subject: [IMPR] preload pages in commons_information.py ......................................................................
[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(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
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()
pywikibot-commits@lists.wikimedia.org