Skip to content

Instantly share code, notes, and snippets.

@AugurNZ
AugurNZ / upload.py failure output
Created August 21, 2013 13:37
This is the verbose output from my failed attempt to upload an image to TropicalWikis using Pywikipediabot's upload.py script.
augur@ubuntu:/home/robert/pywikipedia# python login.py -family:tropical
Password for user No8WiredBot on tropical:en:
No handlers could be found for logger "pywiki"
Logging in to tropical:en as No8WiredBot via API.
Should be logged in now
augur@ubuntu:/home/robert/pywikipedia# python upload.py -family:tropical -keep -filename:Pwbicon.png -noverify Pwbicon.png "The Pywikipediabot icon" -v
Config.py
- base_dir: /home/robert/pywikipedia
- done.
No handlers could be found for logger "pywiki"
@AugurNZ
AugurNZ / orain_logout.py
Created August 20, 2013 04:09
This is the shell script I am trying to use to instruct Pywikipediabot to set all of the status pages to idle, then log out of the Orain wiki farm. I have used chmod +x to make it executable, but it keeps coming up with errors and failing at the first ":" colon it encounters.
#!/usr/bin/env python
replace.py -family:orain -lang:en -page:User:No8WiredBot/status go idle
replace.py -family:orain -lang:bot -page:User:No8WiredBot/status go idle
replace.py -family:orain -lang:bot1 -page:User:No8WiredBot/status go idle
replace.py -family:orain -lang:bot2 -page:User:No8WiredBot/status go idle
login.py -family:orain -all -clean
@AugurNZ
AugurNZ / user-config.py
Created August 19, 2013 22:20
This is my user-config.py for Pywikipediabot. See the <a href="http://meta.wikimedia.org/wiki/User_talk:AugurNZ" target="_blank">discussion</a> (if it hasn't already been archived) for more details.
# -*- coding: utf-8 -*-
# This is an automatically generated file. You can find more configuration
# parameters in 'config.py' file.
# The family of sites we are working on. wikipedia.py will import
# families/xxx_family.py so if you want to change this variable,
# you need to write such a file.
family = 'thetestwiki'