Skip to content

Instantly share code, notes, and snippets.

View DoctorWhooves's full-sized avatar

Doctor Whooves DoctorWhooves

View GitHub Profile
/*********************************************************************
* Copyright (C) 2014 Benjamin Williams
*
* The JavaScript code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
@DoctorWhooves
DoctorWhooves / protect.py
Last active January 4, 2016 10:49
A script that will delete and protect pages on a MediaWiki based wiki from a textfile.
#!/usr/bin/python
# -*- coding: utf-8 -*-
from simplemediawiki import MediaWiki
import getpass
import sys
# Do these serve an actual purpose?
__author__ = '[[User:Jr Mime]]'
__version__ = '1.0'