I ended up adapting `preloadpages` from site.py by removing the loading of
revision content (and a couple of other things I didn't need), and the
github link now points to the latest commit where those changes are
On 7 April 2016 at 16:33, Morten Wang <nettrom(a)gmail.com> wrote:
I'm working on extending the pywikibot.Page object to add methods to get
an article's assessment rating, predicted rating (through ORES), and
number of page views (through the page view API). SuggestBot uses these
three pieces of information when posting suggestions on the English
I have preliminary code that works, and am now trying to extend it with
a couple of generators and bulk loading to increase efficiency. Assessment
ratings are grabbed from talk pages, so that part appears straightforward.
ORES uses revisions IDs, however, so I'm looking for an efficient way to
get "lastrevid" for a list of pages (pywikibot.Page objects).
I can use a PreloadingGenerator for it, as that sets `_revid`, but since I
don't need the page content that seems excessive. Modifying the
`preloadpages` method from site.py is of course possible, but perhaps
there's another alternative here?