Wikipedia:Bots/Requests for approval/EarwigBot 18
- The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was Approved.
Operator: The Earwig (talk · contribs)
Automatic or Manually assisted: Automatic, unsupervised
Programming language(s): Python
Source code available: from tools:~earwig/earwigbot: feeddailypagebot_run.py
Function overview: The bot creates daily pages for Requests for feedback.
Links to relevant discussions (where appropriate): Wikipedia talk:Requests for feedback#revamp - things needed
Edit period(s): Daily at 0:00 UTC, via cron
Estimated number of pages affected: One per day
Exclusion compliant (Y/N): Y
Already has a bot flag (Y/N): Y
Function details: As stated in the function overview; creates daily pages for Requests for feedback, like Wikipedia:Requests for feedback/2010 July 2. It will run daily at midnight UTC, and will create pages for today (at that time, today has just started), tomorrow, two days hence, and three days hence. Unless it is stopped, it should only be creating the last one of those pages, as the others will have, by that time, been created during previous days. It creates the pages with the code <noinclude>{{Wikipedia:Requests for feedback/navday|prev=%s|next=%s}}</noinclude>
, where the first %s
is the previous day's date, and the second is the next's. — The Earwig (talk) 17:47, 1 July 2010 (UTC)[reply]
Discussion
[edit]- Sounds great.
- I, personally, made pages for June when we implemented the new transcluded page-per-day system, following the discussions on the WP:FEED talk page. A few days ago, I created pages for all of July and August, until we could get a bot to do it for us.
- So - yes please, many thanks. Chzz ► 10:25, 4 July 2010 (UTC)[reply]
Code looks good, although I personally would pass just the one timestamp to process() and let that function do the time.gmtime() calls itself. And I would replace date() with just time.strftime("%Y %B %d", t)
.
This is so straightforward that I can't see how it could malfunction, but for good measure Approved for trial (2 days). Please provide a link to the relevant contributions and/or diffs when the trial is complete. Since Chzz has already created the real pages through the end of August, please adjust your prefix for the trial to point somewhere in your or your bot's userspace, so we can see the actual page creations. Anomie⚔ 20:14, 9 July 2010 (UTC)[reply]
- Thanks, I'll get started on this soon, maybe tomorrow morning as it's kinda late right now. — The Earwig (talk) 03:29, 10 July 2010 (UTC)[reply]
- Sorry for the delay. I've set the prefix to User:EarwigBot/FEEDTrial; cron configured and it'll start tonight at midnight UTC. — The Earwig (talk) 22:42, 11 July 2010 (UTC)[reply]
- Trial complete., see User:EarwigBot/FEEDTrial for the pages it created. — The Earwig (talk) 14:58, 13 July 2010 (UTC)[reply]
- Approved. Just as I thought, no issues. Anomie⚔ 20:04, 13 July 2010 (UTC)[reply]
- Trial complete., see User:EarwigBot/FEEDTrial for the pages it created. — The Earwig (talk) 14:58, 13 July 2010 (UTC)[reply]
- Sorry for the delay. I've set the prefix to User:EarwigBot/FEEDTrial; cron configured and it'll start tonight at midnight UTC. — The Earwig (talk) 22:42, 11 July 2010 (UTC)[reply]
- The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.