From 2f417cb36bbe17c9111e65d241922000514a23c6 Mon Sep 17 00:00:00 2001 From: Nar Chhantyal Date: Thu, 4 Aug 2016 19:53:35 +0200 Subject: [PATCH] use https --- wp2git.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp2git.py b/wp2git.py index 9cf97e4..aba4332 100755 --- a/wp2git.py +++ b/wp2git.py @@ -51,15 +51,15 @@ def main(): # Connect to site with mwclient if args.site is not None: - scheme, host, path = urlparse.urlparse(args.site, scheme='http')[:3] + scheme, host, path = urlparse.urlparse(args.site, scheme='https')[:3] if path=='': path = '/w/' elif not path.endswith('/'): path += '/' elif args.lang is not None: - scheme, host, path = 'http', '%s.wikipedia.org' % args.lang, '/w/' + scheme, host, path = 'https', '%s.wikipedia.org' % args.lang, '/w/' else: - scheme, host, path = 'http', 'wikipedia.org', '/w/' + scheme, host, path = 'https', 'wikipedia.org', '/w/' site = mwclient.Site((scheme, host), path=path) print('Connected to %s://%s%s' % (scheme, host, path), file=stderr)