https://bugzilla.wikimedia.org/show_bug.cgi?id=72895
Bug ID: 72895
Summary: generate_family_file.py doesnt add https to the class,
despite informing the user the API url is https
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
generate_family_file.py does not add support for https
$ python ./generate_family_file.py
https://wikiapiary.com/wiki/Main_Page
wikiapiary
Generating family file from
https://wikiapiary.com/wiki/Main_Page
==================================
api url:
https://wikiapiary.com/w/api.php
MediaWiki version: 1.23.6
==================================
Determining other languages...
Loading wikis...
* en... in cache
Writing pywikibot/families/wikiapiary_family.py...
$ cat pywikibot/families/wikiapiary_family.py
# -*- coding: utf-8 -*-
"""
This family file was auto-generated by $Id:
185033971c163ea46b2b1904773b8c407069a4d0 $
Configuration parameters:
url =
https://wikiapiary.com/wiki/Main_Page
name = wikiapiary
Please do not commit this to the Git repository!
"""
from pywikibot import family
class Family(family.Family):
def __init__(self):
family.Family.__init__(self)
self.name = 'wikiapiary'
self.langs = {
'en': 'wikiapiary.com',
}
def scriptpath(self, code):
return {
'en': '/w',
}[code]
def version(self, code):
return {
'en': u'1.23.6',
}[code]
--
You are receiving this mail because:
You are the assignee for the bug.