Hi Dennis,
Does that URL (localhist:8181) seem familiar? Sounds like it could be a
misconfiguration of MediaWiki which exposes it. You could check the output
of the site info api call [1].
If that doesn't help, maybe you can tell us how you generate the family
file? [2]
HTH,
Strainu
[1]
https://m.wikidata.org/wiki/Special:ApiSandbox#action=query&format=json…
[
2]https://m.mediawiki.org/wiki/Manual:Pywikibot/Use_on_third-party_wikis
Pe vineri, 6 decembrie 2019, Dennis Diefenbach <
dennis.diefenbach(a)univ-st-etienne.fr> a scris:
Hi,
I have a little problem using pywikibot with wikidata…… I’m setting a unit
like:
wikibase_unit = pywikibot.ItemPage(wikibase_repo, id)
target = pywikibot.WbQuantity(amount=wikidata_amount, unit=wikibase_unit,
site=wikibase_repo, error = Decimal(wikidata_upperBound) -
Decimal(wikidata_amount))
The problem is the URL of wikibase_unit. It is
http://localhost:8181 instead of the
public URL. The public URL is specified when I create the wikibase_repo in the family
file.
Any clue? Can someone help?
Merci
D063520