Sc4s2cg added a comment.

So I went ahead and tried to create a family file manually as per [[ https://www.mediawiki.org/wiki/Manual:Pywikibot/Use_on_third-party_wikis#Manually_in_core | these ]]directions. My wiki api is at wiki.[REDACTED].com/api.php

This is what it looks like:

from pywikibot import family

class Family(family.Family):
    name = 'finwiki'
    langs = {
        'en': 'wiki.[REDACTED].com',
        }
    def scriptpath(self, code):
        return {
            'en': '',
        }[code]

With this I get the same timeout error. Given the api is at /api.php and not /w/api.php, is the last scriptpath defined correctly? If I do 'en': '/' instead then I get this error: https://pastebin.com/wijHYxhd


TASK DETAIL
https://phabricator.wikimedia.org/T196683

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Sc4s2cg
Cc: Chicocvenancio, Framawiki, Dvorapa, Aklapper, pywikibot-bugs-list, Sc4s2cg, Magul, Tbscho, MayS, Salgo60, Mdupont, JJMC89, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to