Manual:Pywikibot/checkimages.py

Script to check recently uploaded files.

This script checks if a file description is present and if there are other problems in the image's description.

Everything that needs customisation is indicated by comments.

Arguments
This script understands the following command-line arguments: -limit             The number of images to check (default: 80)

-commons           The Bot will check if an image on Commons has the same name and if true it reports the image.

-duplicates[:#]    Checking if the image has duplicates (if arg, set how many                    rollback wait before reporting the image in the report                    instead of tag the image) default: 1 rollback.

-duplicatesreport  Report the duplicates in a log *AND* put the template in                    the images.

-sendemail         Send an email after tagging.

-break             To break the bot after the first check (default: recursive)

-sleep[:#]         Time in seconds between repeat runs (default: 30)

-time[:#]          The -time option is deprecated. Use -sleep instead.

-wait[:#]          Wait x second before check the images (default: 0)

-skip[:#]          The bot skip the first [:#] images (default: 0)

-start[:#]         Use allpages as generator (it starts already form File:[:#])

-cat[:#]           Use a category as generator

-regex[:#]         Use regex, must be used with -url or -page

-page[:#]          Define the name of the wikipage where are the images

-url[:#]           Define the url where are the images

-nologerror        If given, this option will disable the error that is risen when the log is full.

Instructions for the real-time settings
<--- ---> In this way the Bot can understand where the block starts in order to take the right parameter. while description. problem. image's problem.
 * For every new block you have to add:
 * Name=    Set the name of the block
 * Find=    Use it to define what search in the text of the image's description,
 * Findonly= search only if the exactly text that you give is in the image's
 * Summary= That's the summary that the bot will use when it will notify the
 * Head=    That's the incipit that the bot will use for the message.
 * Text=    This is the template that the bot will use when it will report the