Skip to content

Kicksecure/mediawiki-shell

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bash shell scripts for usage of MediaWiki API

Download, upload changes to, and manage pages from MediaWiki wikis from the command line.

This tool may work on other wiki sites, but is primarily intended for management of the Kicksecure and Whonix wikis.

Setup

Create a credentials file in /usr/share/mediawiki-shell/credentials or ~/.mediawikishell_credentials with the following contents:

case "${WIKI_URL-}" in
  *".whonix."*)
    WIKI_API_USER_NAME='username'
    WIKI_API_USER_PASS='password'
    ;;
  *".kicksecure."*)
    WIKI_API_USER_NAME='username'
    WIKI_API_USER_PASS='password'
    ;;
esac
WIKI_API="$WIKI_URL/api.php"
WIKI_INDEX="$WIKI_URL/index.php"

If using a different wiki, add an entry to the case block.

How to Build deb Package from Source Code

Can be built using standard Debian package build tools such as:

dpkg-buildpackage -b

See instructions. (Replace generic-package with the actual name of this package: mediawiki-shell.)

Contact

Donate

mediawiki-shell requires donations to stay alive!

About

Fetch and edit mediawiki pages from the shell

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 98.4%
  • Python 1.6%