Page MenuHomePhabricator

Port reflinks.py to Pywikibot core
Closed, ResolvedPublic

Description

PyWikibot [1] is a Python-based framework to write bots for MediaWiki. There are currently 2 versions of pywikibot currently used:

  • version 1.0 (also known as pywikibot-compat) is the legacy version
  • version 2.0 (also known as pywikibot-core) is a rewrite of the original framework, focusing solely on MediaWiki wikis with an API (version 1.14 or newer) and offering an improved internal architecture.

There are a number of scripts used by various robot operators that were used in pywikibot-compat but have not yet been adapted to work with pywikibot-core. One of those is reflinks.py, which adds the title of linked web pages to bare external links.

You can find information about how to convert the script on [2], [3]. Patches can be submited through the gerrit uploader [4] (you need a MediaWiki.org account). More documentation on gerrit can be found at [5].

[1] https://www.mediawiki.org/wiki/Manual:Pywikibot
[2] https://www.mediawiki.org/wiki/Manual:Pywikibot/2.0/Conversion
[3] https://www.mediawiki.org/wiki/Manual:Pywikibot/i18n_conversion
[4] https://tools.wmflabs.org/gerrit-patch-uploader/
[5] http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Gerrit


Version: unspecified
Severity: normal
Whiteboard: gci2013 https://www.mediawiki.org/wiki/Google_Code-In#Candidate_tasks

Details

Reference
bz56900

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:28 AM
bzimport set Reference to bz56900.
bzimport added a subscriber: Unknown Object (????).

maddiemadan wrote:

What do i do with missing modules like BeautifulSoup.py? Do i port them too?

Change 96976 had a related patch set uploaded by Mayankmadan:
Ported reflinks.py to core

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

Change 96976 merged by Strainu:
Ported reflinks.py to core

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

  • Bug 55135 has been marked as a duplicate of this bug. ***