import pwb
import pywikibot as py
s = py.getSite('de')
p = py.Page(s, 'Uranus (Planet)')
item = py.ItemPage.fromPage(p)
item.exists()
Traceback (most recent call last):
File "<pyshell#11>", line 1, in <module> item.exists() File "pywikibot\page.py", line 2451, in exists self.get() File "pywikibot\page.py", line 2640, in get c = Claim.fromJSON(self.repo, claim) File "pywikibot\page.py", line 2881, in fromJSON data['mainsnak']['datavalue']['value']) File "pywikibot\__init__.py", line 358, in fromWikibase amount = long(wb[u'amount'])
ValueError: invalid literal for long() with base 10: '+0.044405586'
Version: core-(2.0)
Severity: normal