Manual talk:Pywikibot/Wikidata

From mediawiki.org

error[edit]

  File "D:\Python27\wikidata\wikipedia.py", line 778, in _getEditPage
    data['query']={'pages':data['entities']}
KeyError: 'entities'

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

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)Reply

CSV[edit]

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)Reply

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>
    pywikibot.ItemPage.fromPage(an_existing_page)
  File "e:\programming\python\wiki\pywikibot-core\pywikibot\page.py", 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)Reply

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

Linking pages between Wikipedias in different languages[edit]

Hello, I have a bot running on the Moroccan Darija Wikipedia (ary) that performs a few automated tasks, and I would like to know how I can use it to link Wikipedia pages automatically (if I provide it with the name of the equivalent page in another language, e.g. in an Excel sheet). Do I have to get the bot approved on Wikidata, or is there a workaround? Thanks. -- Ideophagous (User talk) 10:19 (UTC+2) 05 July 2021