Skip to content
This repository has been archived by the owner on Nov 16, 2024. It is now read-only.
/ mtc-cli Public archive

๐Ÿ’€ The spiritual successor to the original MTC! tool

License

Notifications You must be signed in to change notification settings

fastily/mtc-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

18 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

mtc-cli

Python 3.12+ MediaWiki 1.35+ License: GPL v3

mtc-cli is a command line tool that helps simplify and automate file imports from Wikipedia to Commons.

This is the rewritten, spiritual successor to the original MTC! tool.

Install

pip install mtc-cli

Usage

usage: __main__.py [-h] [-u username] [-f] [-d] [-a api_endpoint] [titles ...]

mtc CLI

positional arguments:
  titles           Files, usernames, templates, or categories

options:
  -h, --help       show this help message and exit
  -u username      the username to use
  -f               Force (ignore filter) file transfer(s)
  -d               Activate dry run/debug mode (does not transfer files)
  -a api_endpoint  The default desc generation API endpoint to use. Defaults to public toolforge instance.

๐Ÿ‘‰ Password is set via env variable <USERNAME>_PW, such that <USERNAME> is the username of the bot in all caps.