Wikimedia
Make Pywikibot remove disambiguation bracket in labels to created new items for articles in Wikidata
Pywikibot is a Python-based framework to write bots for MediaWiki (more information).
Wikidata is a common database used by Wikimedia projects. Pywikibot has a script named scripts/newitem.py
that creates items in this database for newly created pages.
However page titles can have brackets in it. This task is to remove these brackets from the name of the newly created items, only if the page is in the principal namespace (that means ns: 0
as 0 is used for articles).
Example: Georgia (country)
→ Georgia
You are expected to provide a patch in Wikimedia Gerrit. See https://www.mediawiki.org/wiki/Gerrit/Tutorial for how to set up Git and Gerrit.
Task tags
Students who completed this task
Shreyas Minocha