Manual talk:Pywikibot/Wikidata

Jump to navigation Jump to search


  File "D:\Python27\wikidata\", line 778, in _getEditPage
KeyError: 'entities'

--Shizhao (talk) 18:17, 7 November 2012 (UTC)

This page needs update. I'll do but right now I can't. There is some technical issues that I hope will be fixed soon. Ladsgroup (talk) 12:14, 30 November 2012 (UTC)


I'm trying to build a script to update/import data on Wikidata, easy enough to be run by a not-too-technical GLAM person without too much assistance. I think the most sensible thing is something that reads from CSV, as Extension:Data Transfer does for SMW. Is there already some tool/script of that sort, however rough, to build upon? It would be nice to have "data transfer feature parity" with SMW. ;) --Federico Leva (BEIC) (talk) 16:40, 7 October 2014 (UTC)

How to create new items?[edit]

I'm getting the following error:

>>> pywikibot.ItemPage.fromPage(an_existing_page)
Traceback (most recent call last):
  File "<pyshell#28>", line 1, in <module>
  File "e:\programming\python\wiki\pywikibot-core\pywikibot\", line 3731, in fromPage
    raise pywikibot.NoPage(i)
pywikibot.exceptions.NoPage: Page [[wikidata:-1]] doesn't exist.

How can I create a new data item? Same as what can be done through d:Special:NewItem. Dalba 09:49, 29 November 2015 (UTC)

Probably too late for an answer. d:Wikidata:Pywikibot_-_Python_3_Tutorial/Create_Items. --XXN (talk) 20:54, 20 April 2017 (UTC)