User:AllyUnion/Bot draft work

Category Archival Bot

 * 1) import wikipedia, config
 * 2) import datetime
 * 3) Get today's UTC date
 * 4) category = 'WikiProject'
 * 5) list = catlib.CatLink(site, category).articles - will get all articles in the category as a list
 * 6) for item in list:
 * 7) * PageLink.getVersionHistory for each item
 * 8) * Parse the data for the date
 * 9) * Build string data from info into datetime object
 * 10) *# Compare date, if project page: has been edited in the last 6 months?
 * 11) *# Compare date, if project's talk page: has been edited in the last 2 months?
 * 12) *# Is the page not: 'Wikipedia:WikiProject' and its talk page?
 * 13) *# Is the page not: 'Template:WikiProject' and its talk page?
 * 14) *# Is the page not a redirect?
 * 15) * If all yes, remove Category:WikiProjects(*).
 * Where (*) is any number of characters including zero. May require perl for this.
 * 1) * Mark page with Template:Inactive.