Page MenuHomePhabricator

Pywikibot : Fix Commons scripts broken by toolserver.org to labs migration
Closed, ResolvedPublic

Description

Continuing on from T74496, there are still quite a few usages of the toolserver which need to be replaced/removed/etc, and some other references which will now be more confusing.

$ git grep toolserver
pywikibot/pagegenerators.py:    Yield pages from defunct toolserver UntaggedImages.php.
pywikibot/pagegenerators.py:    https://toolserver.org/~daniel/WikiSense/UntaggedImages.php
pywikibot/pagegenerators.py:    URL = "https://toolserver.org/~daniel/WikiSense/UntaggedImages.php?"
scripts/imagerecat.py:                    "https://toolserver.org/~daniel/WikiSense/CommonSense.php?%s" % parameters)
scripts/imagerecat.py:            "https://toolserver.org/~multichill/filtercats.php?%s" % parameters)
scripts/nowcommons.py:        # https://toolserver.org/~multichill/nowcommons.php?language=it&page=2&filter=
scripts/nowcommons.py:            url = ('https://toolserver.org/~multichill/nowcommons.php?'
scripts/transferbot.py:transferbot.py -v -family:toolserver -tofamily:wikitech -cat:"Query service" -prefix:Nova_Resource:Tools/Tools/
scripts/transferbot.py:transferbot.py -v -family:toolserver -tofamily:wikitech -page:"Template:Query service"

Update - May 2018

$ git grep toolserver
scripts/imagerecat.py:                    "https://toolserver.org/~daniel/WikiSense/CommonSense.php?%s" % parameters)

Event Timeline

jayvdb raised the priority of this task from to Needs Triage.
jayvdb updated the task description. (Show Details)
jayvdb added a project: Pywikibot.
jayvdb changed Security from none to None.
jayvdb added subscribers: jayvdb, Multichill.
valhallasw triaged this task as Medium priority.Jan 29 2015, 9:36 PM
valhallasw added a project: good first task.

What is the replacement for the UntaggedPageGenerator , which finds images that are missing a license tag? It is currently unused by any core script. In compat, it was used by add_text, catimages and checkimages.

compat$ git grep UntaggedImages.php
add_text.py:    http://toolserver.org/~daniel/WikiSense/UntaggedImages.php
add_text.py:    URL = 'http://toolserver.org/~daniel/WikiSense/UntaggedImages.php?'
catimages.py:X                    http://toolserver.org/~daniel/WikiSense/UntaggedImages.php
checkimages.py:                    http://toolserver.org/~daniel/WikiSense/UntaggedImages.php
checkimages.py:        URL = u'http://toolserver.org/~daniel/WikiSense/UntaggedImages.php?'
jayvdb renamed this task from Remove all references and usage of toolserver.org to Pywikibot : Fix scripts broken by toolserver.org to labs migration.Jun 14 2015, 12:55 AM
jayvdb added a project: Toolforge.
jayvdb renamed this task from Pywikibot : Fix scripts broken by toolserver.org to labs migration to Pywikibot : Fix Commons scripts broken by toolserver.org to labs migration.Jul 22 2015, 3:11 AM
Framawiki lowered the priority of this task from Medium to Low.
Framawiki updated the task description. (Show Details)

It only remains scripts/imagerecat.py.

You could probably re-implement imagerecat.py based on Wikidata and Wikidata queries.

Change 405533 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] Remove filterParents implementation from imagerecat.py

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

Change 405533 merged by jenkins-bot:
[pywikibot/core@master] Remove filterParents implementation from imagerecat.py

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

Change 553843 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [cleanup] Remove unused deprecated filterParents function

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

Change 553843 merged by jenkins-bot:
[pywikibot/core@master] [cleanup] Remove unused deprecated filterParents function

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