import pywikibot #tell python that we will be using pywikibot
site=pywikibot.Site('wikidata','wikidata') #Identify the site we will use
repo=site.data_repository()                #Identify the repository
wd = pywikibot.ItemPage(repo, 'Q56095936') #Get the wanted object in WikiData
wd.get()                                   #Get the available information
print('%s' % wd.labels)
print('%s' % wd.descriptions['nl'])
{'nl': 'Wiki Techstorm', 'en': 'Wiki Techstorm'}
Wikimedia Hackaton
import pywikibot #tell python that we will be using pywikibot
site=pywikibot.Site('nl','wikipedia') #Identify the site we will use
pagename = 'Overleg gebruiker:%s/hack' % site.username()
page = pywikibot.Page(site, pagename)
text = page.text
text += '== Happy hacking =='
text += 'Let\'s do some Python exercise. ~~~~'
page.text = text
page.save ('I\'m trying to use Python and Pywikibot')
Sleeping for 8.9 seconds, 2018-10-22 13:54:55
Page [[nl:Overleg gebruiker:RonnieV/hack]] saved