Operator: Nettrom (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 19:22, Monday November 26, 2012 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): Python (using the pywikipediabot rewrite framework)
Source code available: source code on bitbucket (specifically the files opentasks.py and opentask-short.py)
Function overview: Update task templates at regular intervals
Links to relevant discussions (where appropriate):
Edit period(s): Periodically, probably once every hour
Estimated number of pages affected: A handful
Exclusion compliant (Yes/No): No
Already has a bot flag (Yes/No): Yes
Function details: The bot runs on the Toolserver, using its databases to sample a random number of articles from categories associated with specific article tasks (e.g. Category:All articles that may contain original research). In addition to random selection it might apply other criteria, e.g. high popularity or below a certain size, by sampling a larger number of articles than needed and picking specific ones from that set. Once a set of articles is selected it updates the affected page by substituting content, often span elements with specific IDs.
SuggestBot already has approval to update Wikipedia:Community portal/Opentask, see BRFA SuggestBot 7. This BRFA is on purpose a little more general, partly because we also want to update Template:Opentask-short as part of the Onboarding new Wikipedians project, and partly because I suspect there might be some other task template created in the future (e.g. it's not unlikely that a future WMF project or a WikiProject might want one), which is why I have not specified exactly which one in order to not have to submit a BRFA every time.
The described functionality is the same as for updating the Community Portal's list of open tasks, except that I also mention the possibility of additional selection criteria, something which was also briefly mentioned in BRFA SuggestBot 7|SuggestBot's Community Portal/Opentask BRFA but has now been implemented. Once I have put my code through a couple of days of testing I'll update the link to the source code.
Also, the bot isn't exclusion compliant because these tasks shouldn't have a ((nobots)) template anyway. Cheers, Nettrom (talk) 19:22, 26 November 2012 (UTC)[reply]
Trial complete.
I've stopped the cronjobs running this script as the five days are up. The bot's edits to Template:Opentask-short are the nine most recent edits in the page's revision history. Due to the way we selected articles combined with the category it pulls articles from (Category:All articles needing copy edit) being fairly stable, the page was mostly untouched, although the script to update it ran once every hour. As far as I can tell from the bot's logs the were no issues. Let me know if there's anything. Cheers, Nettrom (talk) 19:20, 11 December 2012 (UTC)[reply]