Page MenuHomePhabricator

Add support for wikifunctions.org
Closed, ResolvedPublicFeature

Description

I want the bot to run at https://www.wikifunctions.org/wiki/

I tried with the following file. But it didn't work.

"""Family module for Wikifunction."""
#
# (C) Pywikibot team, 2005-2023
#
# Distributed under the terms of the MIT license.
#
from pywikibot import family


# The Wikifunctions family
class Family(family.WikimediaFamily, family.DefaultWikibaseFamily):

    """Family class for Wikifunctions."""

    name = 'wikifunctions'
    code = 'wikifunctions'
    langs = {
        'wikifunctions': 'www.wikifunctions.org',
    }

    def protocol(self, code) -> str:
        """Return the protocol for this family."""
        return 'https'

Related Objects

StatusSubtypeAssignedTask
ResolvedReleaseXqt
ResolvedReleaseXqt
OpenFeatureNone
ResolvedFeatureXqt

Event Timeline

Xqt triaged this task as Medium priority.
Xqt subscribed.

@Euku: Can you describe a bit more what is not working?

It worked for me:

import pywikibot
s = pywikibot.Site('wikifunctions')
p = pywikibot.Page(s, 'Project:Main Page')
p.exists()
True
p.contributors()
Counter({'Sannita (WMF)': 1, 'Jdforrester (WMF)': 1})
Xqt removed Xqt as the assignee of this task.Aug 5 2023, 11:15 AM

Change 945927 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [families] Add wikifunctions_family.py

https://gerrit.wikimedia.org/r/945927

Change 945927 merged by jenkins-bot:

[pywikibot/core@master] [families] Add wikifunctions_family.py

https://gerrit.wikimedia.org/r/945927

Xqt changed the task status from Open to Stalled.Aug 7 2023, 2:07 PM

Waiting for response.

Xqt claimed this task.