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
Allow easier access to site on a http:// URL #212
Comments
https://mwclient.readthedocs.io/en/latest/user/connecting.html#connecting-to-your-site By default, mwclient will connect using https. If your site doesn’t support https, you need to explicitly request http like so: site = Site(('http', 'test.wikipedia.org')) |
Apologies. I went straight to the reference documentation of the |
Wouldn't a specific parameter be a neater way to achieve this, instead of relying on a specific, opaque data structure and the custom code to handle it? Lines 367 to 370 in 030cf8a
This entire bit could be removed if |
Thanks for cross-referencing that PR, @tosher. I think the comment above still stands. |
I've only kept it for backwards compatibility, but I wouldn't mind if we introduced a new parameter and deprecated the old syntax and then removed it with the next major release or something. |
@danmichaelo shall we reopen #213 then (and this issue as well), provided that it also removes the special handling of the |
Yup, just re-opened #213. But perhaps keep this issue closed? At least with the current title ("Allow access to site on a http:// URL") |
Better now? |
Currently, the URL scheme used to access the MediaWiki instance is hardcoded to
https
in theraw_call
function ofclient.py
. This makes it impossible to use mwclient wit a wiki which is hosted under an unencrypted http:// URL.This should be made configurable (either by adding a scheme parameter to the Site constructor or by allowing a full URL instead of just the hostname there).
The text was updated successfully, but these errors were encountered: