Xqt added a subscriber: russblau.
Xqt added a comment.
An empty list is given if no deleted revisions are found:
import pywikibot
site = pywikibot.Site('wikipedia:de')
page = pywikibot.Page(site, '2023')
site = pywikibot.Site('wikipedia:de', user='Xqt')
page = pywikibot.Page(site, '2023')
page.getDeletedRevision('2023-01-30T19:11:36Z')
[]
If an item is found, a dict is returned like
{'revid': 216107158, 'parentid': 216107091, 'user': '87.147.178.162',
'anon': '', 'timestamp': '2021-10-04T12:24:34Z', 'comment': 'SLA'}
The result is changed since the first Pywikibot core release (implemented by
@russblau) but the documentation is from compat. I propose to change the
documentation according to the result.
TASK DETAIL
https://phabricator.wikimedia.org/T331422
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: russblau, Xqt, Aklapper, pywikibot-bugs-list, binbot, mevo, PotsdamLamb,
Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Aram, Viztor,
Wenyi, Tbscho, MayS, Mdupont, JJMC89, TerraCodes, Dvorapa, Altostratus,
Avicennasis, Hannolans, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]