Manual:Pywikibot/imagerecat.py

Program to (re)categorize images at commons.

The program uses commonshelper for category suggestions. It takes the suggestions and the current categories. Put the categories through some filters and adds the result.

Parameters
The following command line parameters are supported:

-onlyfilter    Don't use Commonsense to get categories, just filter the current categories

-onlyuncat     Only work on uncategorized images. Will prevent the bot from working on an image multiple times.

-hint          Give Commonsense a hint. For example -hint:li.wikipedia.org

-onlyhint      Give Commonsense a hint. And only work on this hint. Syntax is the same as -hint. Some special hints are possible: _20 : Work on the top 20 wikipedia's               _80 : Work on the top 80 wikipedia's                wps : Work on all wikipedia's