Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error trying to get Entity even when it exists in wikidata #175

Open
appledora opened this issue Oct 8, 2022 · 1 comment
Open

Error trying to get Entity even when it exists in wikidata #175

appledora opened this issue Oct 8, 2022 · 1 comment

Comments

@appledora
Copy link

appledora commented Oct 8, 2022

I was trying to get the info in entity 'Minas Gerais' like following:

wd_page = wptools.page("Minas gerais")
try:
    wd_page.get_wikidata()
except LookupError as e:
    print(e)

The error gives me this link which tells that the item is missing.
However the item is actually present in wikidata pretty neatly here.

Is the issue is on the Mediawiki API end or some kind of malformed link within the library? How may I solve it? Any pointers would be appreciated.

@appledora
Copy link
Author

@siznax ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant