In [1]:
import pywikibot
In [2]:
pywikibot.__version__
Out[2]:
'$Id: 4fe6801c6993ebccaf1500ed81e8bc700eab921b $'
In [3]:
pywikibot.__release__
Out[3]:
'3.0-dev'
In [4]:
site = pywikibot.SIte('test','wikipedia')
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-4-e7de2811bb89> in <module>()
----> 1 site = pywikibot.SIte('test','wikipedia')

/srv/paws/lib/python3.4/site-packages/pywikibot/tools/__init__.py in __getattr__(self, attr)
   1600                 except Exception:
   1601                     pass
-> 1602         return getattr(self._module, attr)
   1603 
   1604 

AttributeError: 'module' object has no attribute 'SIte'
In [5]:
site = pywikibot.Site('test','wikipedia')
In [6]:
site
Out[6]:
APISite("test", "wikipedia")
In [7]:
page = pywikibot.Page(site,'test')
In [8]:
page.exists()
VERBOSE:pywiki:Found 1 wikipedia:test processes running, including this one.
Out[8]:
True
In [9]:
site.username()
Out[9]:
'Albertus Aditya'
In [10]:
page.text = 'Hello World'
page.save()
Page [[Test]] saved
INFO:pywiki:Page [[Test]] saved
In [ ]: