-
Notifications
You must be signed in to change notification settings - Fork 17
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
mediawiki_api_call_helper example results in an error #136
Comments
Is there any reason to have the FunctionsEngine in core? WBI would probably get cleaner and faster if the auxiliary functions were moved to say wbi_functions |
here is code that works with requests but NOT with WBI:
Result in ipython:
|
The issue with Like this from wikibaseintegrator import wbi_core
query = {
'action': 'query',
'prop': 'revisions',
'titles': 'Q2',
'rvlimit': 10,
'format': 'json'
}
print(wbi_core.FunctionsEngine.mediawiki_api_call_helper(query, allow_anonymous=True)) It's already fixed in PR #129 If there is no format, wbi force to json |
The text was updated successfully, but these errors were encountered: