Thank you! The reason is that I have not found any pattern how to do it,
and tried to find something in docs.
However,
https://doc.wikimedia.org/pywikibot/master/api_ref/logentries.html#module-logentries
does not list DeleteEntry, and the search lists only results in tests, not
the production modu
Is there a reason that you're trying to use LogEntryListGenerator instead
of the site's logevents method?
>>> import pywikibot
>>> site = pywikibot.Site()
>>> gen = site.logevents('delete')
>>> print(next(gen))
On Sun, Feb 5, 2023 at 3:31 PM Bináris wrote:
> I tried to list delete log entries
I tried to list delete log entries:
from pywikibot.data.api import LogEntryListGenerator
gen = LogEntryListGenerator('delete')
print(next(gen))
I get a wirning and an error:
WARNING: c:\Pywikibot\pywikibot\data\api\_generators.py:857: *RuntimeWarning:
LogEntryListGenerator invoked without a site*