Forum:Bot families on Central

A number of Wikia have people who use the pywikipediabot framework. Though for each wiki you use the system on you need to rewrite a new family file for it. The files are simple enough to copy once you've made one, but they might have issues for users are just starting with the system and can use something simple like replace.py but can't write up their own family. Do you think it would be appropriate to place pages on central which would have the contents of a family file which could be used for cerain wikia. e.g. For the different wikia on Anime a family file which someone would copy to families/anime_family.py could be copied from Anime/Family.

Just wondering if people would consider this an interesting enough idea. Perhaps some people may want to start a page here listing different tricks for building bots which work on wikia.

An example of something I'd add would be: #Setup Familys for Wikia Involved anime = wikipedia.getSite(code=u'en', fam=u'anime') wikipedia.setAction(wikipedia.translate(anime, msg)) siteList = [] templateList = [] #Get Project Wiki Listing wikiaIds = [] page = wikipedia.Page(anime, u'Bots/Wiki', None, 4)#4=Project Namespace try: text = page.get r = re.compile(u'^.*\n?', re.UNICODE | re.DOTALL) text = re.sub(r, u'', text) r = re.compile(u'\n?.*$', re.UNICODE | re.DOTALL) text = re.sub(r, u'', text) r = re.compile(u'\n', re.UNICODE | re.DOTALL) wikilist = re.split(r, text) for wiki in wikilist: if wiki != u'': siteList.append(wikipedia.getSite(code=u'en', fam=wiki)) except wikipedia.NoPage: return False I use it on pages such as Anime:Project:Bots/Wiki and Anime:Project:Bots/AutoTemplate/Templates to build bots which are independent of the computer they are on. Simply put, you just run the bot without any special parameters. It grabs the information on what it's supposed to do from special pages on the Wikia. Those I listed are protected pages which allow administrators to add important things for a bot to do without touching the code of the bot. But another good example is the one for the Narutopedia. JutsuFormatBot uses pages such as w:c:Naruto:List of Ninjutsu/list and w:c:Naruto:List of Ninjutsu/format to generate pages like w:c:Naruto:List of Ninjutsu which have formatting which is to complex for the community to figure out how to edit, but needs to be edited easily by the community. ~Dantman(talk) Mar 22, 2007 @ 03:43 (UTC) 03:43, 22 March 2007 (UTC)