import pywikibot
site = pywikibot.Site('sq', 'wikipedia')
site
APISite("sq", "wikipedia")
page = pywikibot.Page(site, 'sq')
page.exists()
True
page.text
'#REDIRECT [[SQ]]'
page.text = "Hello World!"
page.save()
Page [[sq:Sq]] saved
page.exists()
True
python add_text.py -help
  File "<ipython-input-24-cfe78358e919>", line 1
    python add_text.py -help
                  ^
SyntaxError: invalid syntax
page.exists()
True
page.text
'Hello World!'
page.text = "Hi, this is Pazzbot"
page.text
'Hi, this is Pazzbot'
site = pywikibot.Site('sq', 'wikipedia')
site
APISite("sq", "wikipedia")
page = pywikibot.Page(site, 'PAZZ')
page.exists()
False
page.save()
WARNING: API error badtoken: Invalid token
Sleeping for 9.9 seconds, 2016-12-04 10:49:37
Page [[sq:PAZZ]] saved
page.exists()
False
page.text
''
page.text = "PAZZBOT"
page.text
'PAZZBOT'
page.exists()
True
page.exists()
True
page.text
'{{delete|1=PAZZ}}\nPAZZBOT'