Wikipedia:Bots/Requests for approval/DomdomeggBot
- The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at Wikipedia:Bots/Noticeboard. The result of the discussion was Request Expired.
New to bots on Wikipedia? Read these primers!
- Approval process – How this discussion works
- Overview/Policy – What bots are/What they can (or can't) do
- Dictionary – Explains bot-related jargon
Operator: Domdomegg (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 23:17, Tuesday, August 11, 2020 (UTC)
Function overview: Where possible, automatically update data (starting with the UK) for Template:COVID-19_pandemic_data
Automatic, Supervised, or Manual: Automatic
Programming language(s): Python
Source code available: https://github.com/domdomegg/uk-covid-stats-wikipedia-updater
Links to relevant discussions (where appropriate): No explicit discussion about this bot, but on Village Pump automating this has been met with positive reception and the approved Wugbot 4 does a similar thing for the maps.
Edit period(s): Daily
Estimated number of pages affected: 1
Namespace(s): Template
Exclusion compliant (Yes/No): No, only runs on one page with many safeguards
Function details:
Daily, the bot will call the official UK government COVID data API for cumulative case and death numbers, and update the page. This will happen soon after the data is published at 4pm BST (3pm UTC). This source is https://coronavirus.data.gov.uk/, the one recommended and being used for manual updates now. The API data is licensed under the Open Government License v3.0, so fine to use on Wikipedia with a reference (although it's a fact so not copyrightable under UK law anyway).
It's a fairly simple Python script which has clear monitoring and can easily be shut off. The only Wikipedia API interactions it should have are: Get login token, login, get current page, get edit token, make edit. At several points during the process it will bail if something is unexpected, e.g. data from the government API has unexpected structure, it cannot definitely find the location of the UK statistics on the page, if the numbers on the page are higher (should not be possible with cumulative cases) or significantly lower (should not jump >10%/day) etc.
A bit about me - I've been an editor on-and-off since 2013, and have 3050 live edits on Wikimedia Commons. I've contributed to various open-source Wikimedia projects such as the Wikimedia Commons Android App, and the source code of this bot is open too (will sort out a license soon). I won't add any extra functionality without submitting another BRFA (unless the procedure is to do something different - let me know :)).
Thanks for considering this bot! Apologies if I have made any mistakes in submitting this bot proposal - it's my first bot on Wikipedia :)
Discussion
[edit]Oh, and what I think I'd initially be looking for would be a 7 day supervised trial of this bot - stopping if it runs into any unexpected issues. Also, I've done a little testing in userspace. Thanks again :) Domdomegg (talk) 23:34, 11 August 2020 (UTC)[reply]
- Will this bot conflict with Dapperbot? Primefac (talk) 20:37, 20 August 2020 (UTC)[reply]
- Hi Primefac, thanks for replying :) No, it will not conflict with Dapperbot. It will only update the base article exactly as a human would. It has several safeguards in place to avoid editing the figures if it is at all uncertain about the true statistic (e.g. it'll never decrease the cumulative count). Domdomegg (talk) 22:12, 28 August 2020 (UTC)[reply]
- Approved for trial (7 edits or 7 days). Please provide a link to the relevant contributions and/or diffs when the trial is complete. I suppose technically they're the same thing, but wanted to specify. Primefac (talk) 19:06, 1 September 2020 (UTC)[reply]
- Hi Primefac, thanks for replying :) No, it will not conflict with Dapperbot. It will only update the base article exactly as a human would. It has several safeguards in place to avoid editing the figures if it is at all uncertain about the true statistic (e.g. it'll never decrease the cumulative count). Domdomegg (talk) 22:12, 28 August 2020 (UTC)[reply]
{{OperatorAssistanceNeeded}} Any progress? Primefac (talk) 15:37, 10 November 2020 (UTC)[reply]
- Request Expired. Operator appears to be inactive. No prejudice against re-opening upon return. Primefac (talk) 14:50, 18 November 2020 (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 Wikipedia:Bots/Noticeboard.