Difference between revisions of "User:Strcat"

From ArchWiki
Jump to: navigation, search
(Current tasks)
Line 12: Line 12:
 
         family.Family.__init__(self)
 
         family.Family.__init__(self)
 
         self.name = 'archwiki'
 
         self.name = 'archwiki'
         self.langs = {'en':'wiki.archlinux.org'}
+
         self.langs = {'en':'wiki.archlinux.org',
 +
                      'fr':'wiki.archlinux.fr'}
  
         self.namespaces[4] = {'_default':'ArchWiki'}
+
         self.namespaces[4] = {'_default':'ArchWiki',
         self.namespaces[5] = {'_default':'ArchWiki talk'}
+
                              'fr':'ArchwikiFR'}
 +
         self.namespaces[5] = {'_default':'ArchWiki talk',
 +
                              'fr':'Discussion ArchwikiFR'}
  
 
         self.category_attop = ['en']
 
         self.category_attop = ['en']
Line 26: Line 29:
 
     def protocol(self, code):
 
     def protocol(self, code):
 
         # The ArchWiki is https only and the bot ignores the redirect
 
         # The ArchWiki is https only and the bot ignores the redirect
         return "https"
+
         if code == 'en':
 +
            return "https"
 +
        else:
 +
            return "http"
  
 
     def scriptpath(self, code):
 
     def scriptpath(self, code):
Line 33: Line 39:
 
     def version(self, code):
 
     def version(self, code):
 
         # https://wiki.archlinux.org/index.php/Special:Version
 
         # https://wiki.archlinux.org/index.php/Special:Version
         return '1.17.0'</nowiki>}}
+
         if code == 'fr':
 +
            return '1.16.2'
 +
        else:
 +
            return '1.17.0'</nowiki>}}
  
 
patch to fix [https://wiki.archlinux.org/index.php?title=User:Strcat&diff=156816&oldid=155320 the marker not being removed] with the category_attop setting (for pywikipediabot, don't know if pywikibot has the same problem since I'm not using it for categories) [I should probably report this upstream, but I'm not sure if the ArchWiki causes the problem]:
 
patch to fix [https://wiki.archlinux.org/index.php?title=User:Strcat&diff=156816&oldid=155320 the marker not being removed] with the category_attop setting (for pywikipediabot, don't know if pywikibot has the same problem since I'm not using it for categories) [I should probably report this upstream, but I'm not sure if the ArchWiki causes the problem]:

Revision as of 23:03, 22 September 2011

thestinger's cute little bot. Still needs a bot tag but I'm just making edits we would have done by hand anyway.

About this bot

Right now I'm using pywikipediabot/pywikibot, and so far just the scripts that are included (the newer pywikibot has a nicer API but doesn't include all the nice scripts) because they cover almost everything (replace.py lets you use regex).

pywikipediabot/pywikibot archwiki family file: Template:File

patch to fix the marker not being removed with the category_attop setting (for pywikipediabot, don't know if pywikibot has the same problem since I'm not using it for categories) [I should probably report this upstream, but I'm not sure if the ArchWiki causes the problem]: Template:File