https://bugzilla.wikimedia.org/show_bug.cgi?id=60406
Web browser: --- Bug ID: 60406 Summary: site.loadrevisions(): None is returned in no Page param is passed 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: mpaa.wiki@gmail.com Classification: Unclassified Mobile Platform: ---
Passing revids without Page parameter does not return anything. Since there is no use case for not passing the Page object, it should be made mandatory and docstring updated.
Try:
import pywikibot s = pywikibot.Site('nl', 'wikipedia') s.loadrevisions(revids=[39557838, 39484879])