-
Notifications
You must be signed in to change notification settings - Fork 50
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
mw.get(pagetitle) returns HTML. Json? #27
Comments
If it's that straightforward, send me a pull request ;) |
+1 |
Since the smiley apparently wasn't enough: no, it's not that straightforward. The code currently assumes that API responses are always XML and parses them accordingly to check for errors, warnings, continuation etc etc. It's thus not possible to "just" return JSON, because the library has no capability to understand anything other than XML at the moment, and I don't see any easy way of adding such capability. But again, if you think you can make this happen, code contributions are more than welcome. |
I think XML is fine and retrieving it in other forms might be outside the scope of this gem in that case. |
Hello
Given that MediaWiki can return Json, XML and other more parseable formats - could you add this into the utils? It should be pretty straightforward.
Thanks
The text was updated successfully, but these errors were encountered: