/mw-tool-tourbot

Semi-automated bot for migrating on-wiki JavaScript.

Primary LanguageJavaScript

Build Status

mw-tool-tourbot

Usage

screen shot

screen shot

screen shot

Quick start

Install the npm package:

npm install -g mw-tool-tourbot

To start the interactive process, run the tourbot program. Pass parameters like tourbot --file path/to/results.txt.

Options

  • --file results.txt - File containing pairs of (wiki dbname, page name) in mwgrep output format.
  • --all - Iterate over all page names, even if no tourbot patterns match on this page. Set this to use tourbot as a convenient way to create urls for each result and open them in a web browser.
  • --contains - Limit the all iteration to pages that currently contain a particular phrase. This is especially useful when multiple people are working on the same list.
  • --matches - Like contains, but interpreted as a regular expression.

Public results.

Example

curl -O -L 'https://gist.github.com/Krinkle/a18e726fc3af30f30bf9b2ba919820b5/raw/mwgrep.mwCustomEditButtons.txt'
tourbot -f mwgrep.mwCustomEditButtons.txt -a -c 'mwCustomEditButtons'

 Reading /Users/krinkle/Downloads/mwgrep.mwCustomEditButtons.txt

 MediaWiki:Editpage.js (ab.wikipedia.org)

 Open in browser? (yes/no) y
 Opening https://ab.wikipedia.org/wiki/MediaWiki:Editpage.js...

Development

Install from Git:

git clone https://github.com/Krinkle/mw-tool-tourbot.git

Manually run npm install. To start the interactive process, run ./bin/tourbot.js. Pass parameters like ./bin/tourbot.js -- --file path/to/results.txt.

Alternatively, run npm link to create a global symlink for tourbot.

See also