Advertisement
Urbanecm

Untitled

Jan 28th, 2017
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.89 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. """
  3. This family file was auto-generated by $Id: cd1caa72b02b64185d9394fff1d0d122996f5ad0 $
  4. Configuration parameters:
  5.  url = https://wikidata.beta.wmflabs.org/wiki/Wikidata:Main_Page
  6.  name = betawikidata
  7.  
  8. Please do not commit this to the Git repository!
  9. """
  10.  
  11. from pywikibot import family
  12. from pywikibot.tools import deprecated
  13.  
  14.  
  15. class Family(family.Family):
  16.     def __init__(self):
  17.         family.Family.__init__(self)
  18.         self.name = 'betawikidata'
  19.         self.langs = {
  20.             'en': 'wikidata.beta.wmflabs.org',
  21.         }
  22.  
  23.     def scriptpath(self, code):
  24.         return {
  25.             'en': '/w',
  26.         }[code]
  27.  
  28.     @deprecated('APISite.version()')
  29.     def version(self, code):
  30.         return {
  31.             'en': u'1.29.0-alpha',
  32.         }[code]
  33.  
  34.     def protocol(self, code):
  35.         return {
  36.             'en': u'https',
  37.         }[code]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement