Giter Site home page Giter Site logo

mediawiki-purger's Introduction

MediaWiki Purger

Purge all pages on a MediaWiki wiki using a CLI tool.

Requirements

  • Java 11 or newer.
  • Tested on MediaWiki 1.33.3.

Usage

  1. Download the jar on the releases page.
  2. Open a terminal and navigate to where you downloaded the jar.
  3. Run the jar with java -jar mediawiki-purger.jar [options]. See below for a list of options.

Options

Usage: purger [OPTIONS]

Options:
  --api TEXT           The URL to the MediaWiki API, such as
                       https://www.mediawiki.org/w/api.php.
  --page-size INT      Amount of pages to purge at a time.
  --throttle INT...    The maximum amount of API requests per time period in
                       milliseconds, such as `10 1000` for 10 requests per
                       second.
  --start-from TEXT    Starts purging pages in alphabetical order starting
                       from this page title. Does not have to refer to an
                       existing page.
  --username TEXT      The username to log in as, including the @.
  --bot-password TEXT  The bot password to log in with.
  -h, --help           Show this message and exit

Development

gradlew assemble  # Create the jar in the `build/libs` directory
gradlew check     # Run tests and static analysis

Debugging

To run the jar with a specific log level, run java -Dorg.slf4j.simpleLogger.defaultLogLevel=<LEVEL> -jar mediawiki-purger.jar [options].

mediawiki-purger's People

Contributors

fwdekker avatar

Watchers

 avatar  avatar  avatar

mediawiki-purger's Issues

Add login methods

Allow users to log in to potentially increase server-side interaction limits.

Fix weird newlines in log messages

I'm using raw strings in Kotlin which unfortunately means that some of the newlines are present in the logged messages. This should not be so.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.