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

Issue about xml response and new feature suggestion #195

Open
The-Earth opened this issue Aug 29, 2018 · 1 comment
Open

Issue about xml response and new feature suggestion #195

The-Earth opened this issue Aug 29, 2018 · 1 comment

Comments

@The-Earth
Copy link

site.api() can't deal with responses in xml format such as responses to an export query. That's because site.api() always expects response in json format. (I have searched 'xml' in the documents and found nothing) Furthermore, it'll be awesome if mwclient supports Export and Import feature. (like what we can do in Special:Export and Special:Import)

@danmichaelo
Copy link
Member

You're right, export is not really supported. You can still use raw_call to make a manual api call though:

site.raw_call('api', {'action': 'query', 'titles': 'Page title', 'export': 1})

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

No branches or pull requests

2 participants