import pywikibot
site = pywikibot.Site('test', 'wikipedia')
site
APISite("test", "wikipedia")
page = pywikibot.Page(site, 'test')
page.exists()
True
page.text
'test\n1234'
page.text = 'Hello world'
page.save()
Page [[Test]] saved
import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')

page.text = 'Hello world!'
page.save()
Sleeping for 9.1 seconds, 2017-11-07 22:09:43
Page [[en:User:Ukrwikicolo/sandbox]] saved
import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')

page.text = 'Hello world!'
page.save(u"Edit comment")
Page [[en:User:Ukrwikicolo/sandbox]] saved
import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')

page.text = 'Hello world!'
page.save(u"Edit comment")
Page [[en:User:Ukrwikicolo/sandbox]] saved
import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')

page.text = 'Test2'
page.save(u'Edit comment')
Page [[en:User:Ukrwikicolo/sandbox]] saved
import wikipedia
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-13-0b595efc8d0e> in <module>()
----> 1 import wikipedia

ModuleNotFoundError: No module named 'wikipedia'
import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')
add_text = pywikibot.Add_text('Documentation')
page.save(u'Edit comment')
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-14-333b0b525081> in <module>()
      3 site = pywikibot.Site('en', 'wikipedia')
      4 page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')
----> 5 add_text = pywikibot.Add_text('Documentation')
      6 page.save(u'Edit comment')

/srv/paws/pwb/pywikibot/tools/__init__.py in __getattr__(self, attr)
   1701                 except Exception:
   1702                     pass
-> 1703         return getattr(self._module, attr)
   1704 
   1705 

AttributeError: module 'pywikibot' has no attribute 'Add_text'
import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')
addText =(u'Doc')
page.save(u'Edit comment')
Page [[en:User:Ukrwikicolo/sandbox]] saved
import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')
addText =(u'Doc')
page.save(u'Edit comment')
Page [[en:User:Ukrwikicolo/sandbox]] saved
import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')
add_text -cat:template_documentation -text:'Doc' -except:"\{\{([Tt]emplate:|)[Dd]ocumentation [Ss]ubpage" -up
page.save(u'Edit comment')
  File "<ipython-input-17-c66c1763f9d6>", line 5
    python pwb.py add_text -cat:template_documentation -text:'Doc' -except:"\{\{([Tt]emplate:|)[Dd]ocumentation [Ss]ubpage" -up
             ^
SyntaxError: invalid syntax
import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')
add_text -cat:template_documentation -text:'Doc' -except:"\{\{([Tt]emplate:|)[Dd]ocumentation [Ss]ubpage" -up
page.save(u'Edit comment')
  File "<ipython-input-18-dd5ca67e77b2>", line 5
    add_text -cat:template_documentation -text:'Doc' -except:"\{\{([Tt]emplate:|)[Dd]ocumentation [Ss]ubpage" -up
                                              ^
SyntaxError: invalid syntax
import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')
add_text -text:'Doc' -except:"\{\{([Tt]emplate:|)[Dd]ocumentation [Ss]ubpage"  
page.save(u'Edit comment')
  File "<ipython-input-19-900671752754>", line 5
    add_text -text:'Doc' -except:"\{\{([Tt]emplate:|)[Dd]ocumentation [Ss]ubpage"
                               ^
SyntaxError: invalid syntax
import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')
add_text  -text:'Dochxf' 
page.save(u'Edit comment')
  File "<ipython-input-20-5fa2032311b8>", line 5
    add_text  -text:'Dochxf'
                             ^
SyntaxError: illegal target for annotation
import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')
page.addtext = 'Dochxf' 
page.save(u'Edit comment')
Page [[en:User:Ukrwikicolo/sandbox]] saved
import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')
page.add_text = 'Dochxf' 
page.save(u'Edit comment')
Page [[en:User:Ukrwikicolo/sandbox]] saved
import pywikibot

site = pywikibot.Site('test', 'wikipedia')
page = pywikibot.Page(site, 'Test')
page.addtext = 'Dochxf' 
page.save(u'Edit comment')
Page [[Test]] saved
import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')
addText = 'Dochxf' 
page.save(u'Edit comment')
Page [[en:User:Ukrwikicolo/sandbox]] saved
import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')
page.addText = 'jhgkjh' 
page.save(u'Edit comment')
Page [[en:User:Ukrwikicolo/sandbox]] saved
import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')
page.text = 'Hello world!'
page.save(u'Edit comment')
Page [[en:User:Ukrwikicolo/sandbox]] saved
import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')
addText = 'jhgkjh' 
newtext = page.text + addText
page.save(u'Edit comment')
Page [[en:User:Ukrwikicolo/sandbox]] saved
import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')
addText = 'jhgkjh' 
newtext = addText
page.save(u'Edit comment')
Page [[en:User:Ukrwikicolo/sandbox]] saved
help()
Welcome to Python 3.6's help utility!

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://docs.python.org/3.6/tutorial/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, symbols, or topics, type
"modules", "keywords", "symbols", or "topics".  Each module also comes
with a one-line summary of what it does; to list the modules whose name
or summary contain a given string such as "spam", type "modules spam".

help> addText
No Python documentation found for 'addText'.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.

help> add_text
No Python documentation found for 'add_text'.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.

help> help(addText)
No Python documentation found for 'help(addText)'.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.

help> help(add_text)
No Python documentation found for 'help(add_text)'.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.

import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')
page.text += 'Tttest!'
page.save(u'Edit comment')
import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')
text = page.get()
page.text = text + u'Tttest!'
page.save(u'Edit comment')
import pywikibot

site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'User:Ukrwikicolo/sandbox')
text = page.get()
print(text)