Page MenuHomePhabricator

Implement filearchive in Pywikibot Site
Open, LowPublicFeature


The very old task T23345 got implemented Sorry, mixed up old versions of a not deleted file ( ) and deleted images ( ).

We can now search the filearchive in the api by hash, see . That means we can finally add the site function to access this in pywikibot. Function in API is described at and . Implementation could be done the same way as the allimages, see

Event Timeline

When I hit the api I'm logged into my own (sysop) account so I get something back. Bot account can't see deleted stuff so doesn't work. Looking at the rights are either see everything deleted or see nothing. A more fine grained right would be needed to be able to search by sha1, but not see the actual file content and maybe intentionally hidden metadata. Sounds complicated, dropping this one to low.

Xqt changed the subtype of this task from "Task" to "Feature Request".Sep 12 2019, 11:31 AM
Xqt added a subscriber: Xqt.

api.PageGenerator does not work because that module cannot be used as a generator. ListGenerator can be used instead but it retrieves the property items instead of the FilePage which would be given by a PageGenerator. What would be the best solution for this request:

  1. retrieving the FilePages for the given request or
  2. retrieving the list items for the given properties or
  3. retrieving the FilePages for the given request where other parts are given as a data attribute

Change 536620 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [IMPR] Add ListGenerator for filearchive to

Change 536620 merged by jenkins-bot:
[pywikibot/core@master] [IMPR] Add ListGenerator for filearchive to