Hello Mjbmr,

On 27 October 2011 22:07, Mjbmr <mjbmri@gmail.com> wrote:
Hello, Is there any script with pywikipedia to remove none exist images from pages? if there isn't, someone please commit this script which I attached to the mail, Thanks.

Thank you for contributing your script. However, there already is a function in the framework you can use to remove images (wikipedia.Page.replaceImage), and the API queries also should be built somewhere in the framework, I think. The 'bot script' in general should only contain a high-level description, and no details on the exact underlying representation (how would this script work on non-api wikis? And what about if you would want to use a database layer?). Oh, and we already have code to retrieve categories and pages ;-)

If you want to, maybe you can rewrite it to take these points into account. If you don't have the time to do this, maybe one of the pwb developers will have time to do it for you.