Мої експерименти з http://sourceforge.net/projects/pywikipediabot/

families/dlou_family.py

# -*- coding: utf-8  -*-

import family

# The meta family

class Family(family.Family):
    name = 'dlou'
    def __init__(self):
        family.Family.__init__(self)
        self.langs = {
            'dlou': 'docs.linux.org.ua',
        }
        self.namespaces[4] = { '_default' : u'Dlou' , }
        self.namespaces[5] = { '_default' : u'Dlou Talk' , }
        self.nocapitalize=[]

    def path(self, code):
            return '/dlou/index.php'

user-config.py

username = 'IlyaPyBot'
console_encoding='cp1251'
family = 'dlou'
mylang = 'dlou'
throttle = 5

Вхід

python login.py

Створив список статей - ?Задачі.

Додати категорію

python category.py add

Wikipedia page with list of pages to change: Задачі
Getting page <span class="createlink"><a href="/cgi-bin/ikiwiki.cgi?page=dlou%3Adlou%3A%D0%97%D0%B0%D0%B4%D0%B0%D1%87%D1%96&amp;from=users%2FIlyaPyBot&amp;do=create" rel="nofollow">?</a>dlou:dlou:Задачі</span>
  ==> 2 pages to process

Category to add (do not give namespace): Задачі
<span class="createlink"><a href="/cgi-bin/ikiwiki.cgi?page=Category%3A%D0%9E%D0%B1%D1%80%D0%BE%D0%B1%D0%BA%D0%B0_%D0%B3%D1%80%D0%B0%D1%84%D1%96%D0%BA%D0%B8&amp;from=users%2FIlyaPyBot&amp;do=create" rel="nofollow">?</a>Category:Обробка графіки</span> [y/n/a(ll)]: y
Getting page <span class="createlink"><a href="/cgi-bin/ikiwiki.cgi?page=dlou%3Adlou%3ACategory%3A%D0%9E%D0%B1%D1%80%D0%BE%D0%B1%D0%BA%D0%B0_%D0%B3%D1%80%D0%B0%D1%84%D1%96%D0%BA%D0%B8&amp;from=users%2FIlyaPyBot&amp;do=create" rel="nofollow">?</a>dlou:dlou:Category:Обробка графіки</span>
Current categories:
* <span class="createlink"><a href="/cgi-bin/ikiwiki.cgi?page=%D0%97%D0%B0%D0%B4%D0%B0%D1%87%D1%96&amp;from=users%2FIlyaPyBot&amp;do=create" rel="nofollow">?</a>Задачі</span>
Adding <span class="createlink"><a href="/cgi-bin/ikiwiki.cgi?page=Category%3A%D0%97%D0%B0%D0%B4%D0%B0%D1%87%D1%96&amp;from=users%2FIlyaPyBot&amp;do=create" rel="nofollow">?</a>Category:Задачі</span>
Changing page <span class="createlink"><a href="/cgi-bin/ikiwiki.cgi?page=dlou%3Adlou%3ACategory%3A%D0%9E%D0%B1%D1%80%D0%BE%D0%B1%D0%BA%D0%B0_%D0%B3%D1%80%D0%B0%D1%84%D1%96%D0%BA%D0%B8&amp;from=users%2FIlyaPyBot&amp;do=create" rel="nofollow">?</a>dlou:dlou:Category:Обробка графіки</span>
<span class="createlink"><a href="/cgi-bin/ikiwiki.cgi?page=Category%3A%D0%90%D0%B4%D0%BC%D1%96%D0%BD%D1%96%D1%81%D1%82%D1%80%D1%83%D0%B2%D0%B0%D0%BD%D0%BD%D1%8F_%D1%81%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D0%B8&amp;from=users%2FIlyaPyBot&amp;do=create" rel="nofollow">?</a>Category:Адміністрування системи</span> [y/n/a(ll)]: y
Getting page <span class="createlink"><a href="/cgi-bin/ikiwiki.cgi?page=dlou%3Adlou%3ACategory%3A%D0%90%D0%B4%D0%BC%D1%96%D0%BD%D1%96%D1%81%D1%82%D1%80%D1%83%D0%B2%D0%B0%D0%BD%D0%BD%D1%8F_%D1%81%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D0%B8&amp;from=users%2FIlyaPyBot&amp;do=create" rel="nofollow">?</a>dlou:dlou:Category:Адміністрування системи</span>
Current categories:
Adding <span class="createlink"><a href="/cgi-bin/ikiwiki.cgi?page=Category%3A%D0%97%D0%B0%D0%B4%D0%B0%D1%87%D1%96&amp;from=users%2FIlyaPyBot&amp;do=create" rel="nofollow">?</a>Category:Задачі</span>
Changing page <span class="createlink"><a href="/cgi-bin/ikiwiki.cgi?page=dlou%3Adlou%3ACategory%3A%D0%90%D0%B4%D0%BC%D1%96%D0%BD%D1%96%D1%81%D1%82%D1%80%D1%83%D0%B2%D0%B0%D0%BD%D0%BD%D1%8F_%D1%81%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D0%B8&amp;from=users%2FIlyaPyBot&amp;do=create" rel="nofollow">?</a>dlou:dlou:Category:Адміністрування системи</span>