import pywikibot
site = pywikibot.Site('test', 'wikipedia')
site
APISite("test", "wikipedia")
page=pywikibot.Page(site,'test')
page.exists()
True
page.text
"The script in PAWS which edited this page:\n import pywikibot\n site = pywikibot.Site('test', 'wikipedia')\n page = pywikibot.Page(site, 'test')\n page.text = 'Hello world!'\n page.save()"
page.text = 'hello'
page.save()
Page [[Test]] saved
page2=pywikibot.Page(site,'blahblah')
page2.text= 'fasdfas'
page2.save()
Page [[Blahblah]] saved
page3=pywikibot.Page(site,'User:Arunpatro0/sandbox')
page3.text='wahup'
page3.save()
Page [[User:Arunpatro0/sandbox]] saved