Commons:Bots/Requests/MatrixBot 2

MatrixBot (talk · contribs) 2


Operator: Matrix (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought: Remove all files from all categories in Category:Books in PDF by year

Automatic or manually assisted: Automatic, unsupervised

Edit type (e.g. Continuous, daily, one time run): One time run

Maximum edit rate (e.g. edits per minute): 20 edits/min

Bot flag requested: (Y/N): N

Programming language(s): pywikibot

Matrix(!) {user - talk? - uselesscontributions} 16:52, 16 September 2024 (UTC)

Discussion

Please read discussion at Commons:Categories for discussion/2016/02/Category:Books in PDF by year first. —Matrix(!) {user - talk? - uselesscontributions} 16:52, 16 September 2024 (UTC)

i think you shouldnt just "remove the categories", but move them instead.
for example, files should be moved from Category:1505 books PDF files to Category:1505 books, if the file page wikitext doesnt have "[[Category:1505 books]]" or "[[Category:1505 books from...]]". RZuo (talk) 17:43, 16 September 2024 (UTC)
Thanks for the idea, that should be easy to implement with some additional python and regex. —Matrix(!) {user - talk? - uselesscontributions} 17:11, 18 September 2024 (UTC)

Approved. --Krd 13:20, 26 September 2024 (UTC)