import pywikibot
site = pywikibot.Site('test', 'wikipedia')
site
APISite("test", "wikipedia")
page = pywikibot.Page(site, 'test')
page.exists()
True
page.text
'Hello world\n\n[[Category:Test]]'
page.text = 'Hello world'
page.save()
Page [[Test]] saved
help()
page = pywikibot.Page(site, u"Escherichia coli")
page
page.text
print (page.text)
 
print ("hi")
2+2