https://bugzilla.wikimedia.org/show_bug.cgi?id=58944
Web browser: --- Bug ID: 58944 Summary: site.mediawiki_message: support multiple messages Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: valhallasw@arctus.nl Blocks: 58942 Classification: Unclassified Mobile Platform: ---
Archivebot currently directly calls the API to get 'january'-'december' and 'jan'-'dec' messages. There should be a function to get (and cache) a large number of mediawiki messages in a single API request.
Currently used code in Archivebot:
qg = pywikibot.data.api.QueryGenerator( site=self.site, meta="allmessages", ammessages='|'.join(months_long + months_short) )