Page MenuHomePhabricator

Add new options to harvest_template.py: create and skip
Closed, ResolvedPublic

Description

harvest_template.py should have an option to create an item for the processed page if there does not exist one.

Also, harvest_template.py should have an option to skip (to not edit) some item if it contains some claim. Sometimes list articles are mixed among normal articles in common catrgories and contains the needed templates; in such cases it's needed to skip the items with Q13406463.

Event Timeline

Change 366200 had a related patch set uploaded (by Matěj Suchánek; owner: Matěj Suchánek):
[pywikibot/core@master] Optionally create items in harvest_template.py

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

harvest_template.py should have an option to create an item for the processed page if there does not exist one.

See the patch (it needs to have two other major changes merged).

Also, harvest_template.py should have an option to skip (to not edit) some item if it contains some claim. Sometimes list articles are mixed among normal articles in common catrgories and contains the needed templates; in such cases it's needed to skip the items with Q13406463.

See T137842: Generators -onlyif / -onlyifnot should be able to filter pages (not only items).

Change 366206 had a related patch set uploaded (by Matěj Suchánek; owner: Matěj Suchánek):
[pywikibot/core@master] Handle non-items in ItemClaimFilterPageGenerator

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

Change 366200 merged by jenkins-bot:
[pywikibot/core@master] Optionally create items in harvest_template.py

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

Change 366206 merged by jenkins-bot:
[pywikibot/core@master] Handle non-items in ItemClaimFilterPageGenerator

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