WPCleaner – 2.05 (August 26, 2022 (2022-08-26)) [±]
WPCleaner

General information about WPCleaner

Discussion

Discuss the application

Typos

Suggestions for spelling and typography

FAQ

Frequently asked questions

Installation

Install instructions

Bug report or feature request · History of changes · Configuration (help, template) · Wikis · Languages · Users · Screenshots
Bot tools
Bot tools

WPCleaner provides a few Bot tools:

General bot tools
General bot tools
Bot tools for Check Wiki
Bot tools for Check Wiki


Note: These tools are meant to be used only by authorized bots. They can modify a lots of pages in a small amount of time. Use only this functions if you understand perfectly the modifications about to be made. It's your responsibility to ensure that the modifications are correct.

Command line usage[edit]

Most of these tools are also available in the command line, so they can be used automatically on a regular basis.

To use WPCleaner from the command line:

Where :

Update

It's always better to use an up to date version of WPCleaner, and it's even more important when running in bot mode.

The UpdateWPCleaner.bat script below retrieves the last version of WPCleaner on Windows. The wget program can be downloaded from the GnuWin32 project.

@ECHO OFF

:: Update WPCleaner
DEL /F WikipediaCleaner.jar
"C:\Program Files (x86)\GnuWin32\bin\wget.exe" http://site4145.mutu.sivit.org/WikiCleaner/WikipediaCleaner.jar

Repetitive tasks

It's possible to create scripts to do some repetitive tasks.

The FixCheckWiki.bat script below automatically fixes error #16 (Control characters).

@ECHO OFF

:: Update WPCleaner
CALL UpdateWPCleaner.bat

java -cp WikipediaCleaner.jar org.wikipediacleaner.Bot fr USER PASSWORD FixCheckWiki 16

Running on Toolforge[edit]

It's possible to run WPCleaner in bot mode on Toolforge. Details can be found in this Phabricator issue, especially in this comment.

Running on Synology NAS[edit]

It's possible to run WPCleaner in bot mode on some NAS, depending on the brand and model of the NAS. This chapter gives an example for Synology NAS (tested with DS411j model).

To run automated tasks with WPCleaner at regular interval, follow the steps below:


#!/bin/sh
cd /volume1/Divers/WPCleaner/FixCheckWiki/
/bin/rm -f WikipediaCleaner.jar 2>&1 | /usr/bin/tee script.log
/usr/bin/wget -nv http://site4145.mutu.sivit.org/WikiCleaner/WikipediaCleaner.jar 2>&1 | /usr/bin/tee -a script.log
/volume1/@appstore/java7/jre/bin/java -Xmx1024m -cp WikipediaCleaner.jar org.wikipediacleaner.Bot fr USER PASSWORD UpdateDabWarnings 2>&1 | /usr/bin/tee -a script.log
echo Finished >> script.log