In [1]:
print("hello")
hello
In [3]:
import pywikibot

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

page.text = 'Hello world!'
page.save()
Sleeping for 9.2 seconds, 2016-04-30 08:21:47
Page [[Testpagesomethin]] saved
In [6]:
from ipywidgets import interact_manual
In [10]:
@interact_manual
def save_page(page_name='', page_content=''):
    site = pywikibot.Site('ta', 'wikipedia')
    page = pywikibot.Page(site, page_name)

    page.text = page_content + '{{delete}}'
    page.save()
Page [[Somethinmore]] saved
In [ ]: