Hi Rubin,

On 9 May 2014 21:09, rubin.happy <rubin.happy@gmail.com> wrote:

So, are there any ready methods/scripts to do this task? Ru.wiki has about 4000+ files with red links to files and such a bot would be really helpful...

Do you have a list of the files that should be unlinked, or should all non-existing images be unlinked? The first case is easy, the second one is harder, but can still be done easily as long as the Toolserver is still online.

Basically, the trick would be to combine the existing Delinker class with something that feeds it a list of files to remove; the basic syntax for something like that would be

Delinkers = threadpool.ThreadPool(Delinker, self.config['delinker_instances'], self)

for file in files_to_remove:
    Delinkes.append(file, ...some other parameters..., replacement=None)


as for the other parameters, you'd have to check the Delinker code -- I don't think there are docs, unfortunately.



Merlijn