Hi, I want to request some feature of pywikipediabot. The purpose of
this feature is to add or remove category on pages of first wikis based
on pages on second wikis.
Sorry for bad english and bad explanation.
Input:
* Target wikipedia code: ex: "id" (for id.wikipedia)
* Target category name (targetcat): ex: "Kategori:Ilmuwan Amerika
Serikat" (equivalent for en:Category:American scientists)
* Source wikipedia code: ex: "en" (for en.wikipedia)
=Algorithm=
==Add==
* Search category name (sourcecat) of target category on source
wikipedia based on interwiki of "targetcat"
* For all pages (P1) on source wikipedia having category "sourcecat" do:
if (P1) has interwiki to target wikipedia (P2) and (P2) not
categorized to "targetcat" then add category "targetcat" to P2.
==Remove==
* Search category name (sourcecat) of target category on source
wikipedia based on interwiki of "targetcat"
* For all pages (P1) on source wikipedia having category "sourcecat" do:
if (P1) has interwiki to target wikipedia (P2) and (P2) categorized to
"targetcat" then remove category "targetcat" from P2.
This feature will make great help.
Regards
Stanley