Last modified: 2013-10-12 10:36:37 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1547/ Reported by: hazard-sj Created on: 2012-12-09 02:20:09 Subject: exists function (wikipedia.py) doesn't work well on Wikidata Original description: Hello, page.exists\(\) isn't working properly on Wikidata \(for items at least, haven't checked for non-items\). It always returns False. \(r10746\)
- **priority**: 5 --> 8
- **priority**: 8 --> 7
Is this still the case? Is this in 1.0 (compat) or 2.0 (core)?
It should not be an issue in core.
Cannot reproduce: >>> import wikipedia as pywikibot >>> s = pywikibot.getSite('wikidata', 'wikidata') >>> p = pywikibot.DataPage(s, 'Q1942244') >>> print p.exists() True >>> p = pywikibot.Page(s, 'Q1942244') >>> print p.exists() True
I guess this has been solved months ago.