Last modified: 2014-09-18 10:32:50 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/341/ Reported by: apac1 Created on: 2013-08-29 03:50:31.994000 Subject: Create pagegenerators for Wikidata (items from file, items using a given property, items linking to items, etc) Assigned to: legoktm Original description: Currently pagegenerators.py doesn't seem to work for Wikidata. Either existing generators would need to be adapted or new ones created.
What do you mean? The pagegenerators work exactly the same. Can you please provide a code sample for something that doesn't work?
Something like pwb.py claimit -ref:"Property:P1234" P123 Q1234567 -namespace:0 throws an error: pywikibot.data.api.APIError: param-missing: Either provide the item "ids" or pairs of "sites" and "titles" for corresponding pages. Maybe it was fixed in last weeks update.
Actually, it also has WARNING: API warning (wbgetentities): Unrecognized value for parameter 'sites': wikidatawiki config is set with: family = 'wikidata' mylang = 'wikidata'
- **assigned_to**: Legoktm
Ok, I see the issue here. claimit.py was designed to be run on a client site, not on the datasite itself. I'll get around to fixing this soon.