import pywikibot
site = pywikibot.Site('test', 'wikipedia')
site
APISite("test", "wikipedia")
page = pywikibot.Page(site, 'test')
page.exists()
True
page.text
"c'est mon tests"
page.save()
Page [[Test]] saved
page.text = 'Hello World!'
page.save()
Page [[Test]] saved
page.text
'Hello World!'
page.save()
Page [[Test]] saved
import pywikibot

site = pywikibot.Site('test', 'wikipedia')
page = pywikibot.Page(site, 'test')

page.text = 'Hello world!'
page.save()
Page [[Test]] saved