Wikipedia:Bots/Requests for approval/Dapperbot
- 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
Approved.
Operator: WikiMacaroons (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 08:27, Thursday, August 13, 2020 (UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): Python
Source code available: Still in development (Will change this once I've done it)
Function overview: Automatically uses the Covid-19 API to update Coronavirus disease rates.
Links to relevant discussions (where appropriate):
Edit period(s): Perhaps twice daily?
Estimated number of pages affected: 2,760
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): No
Function details: Every day, perhaps twice a day, the bot sweeps all Covid-19 articles, updating the rates. It would perhaps use a dedicated Covid 19 REST API to scrape the data and automatically edit each article. There would perhaps be some templates that would be laid out on each page so the bot could edit them.
Discussion
editWould you make a few manual edits with your own account that illustrate the edit you would make with your bot account and link those diffs here? — xaosflux Talk 11:26, 13 August 2020 (UTC)[reply]
Extended content
|
---|
|
- @WikiMacaroons: OK, lets try this again: manually, under your own account - make one edit that you think is good, that would be the same as what you are proposing your bot would do for you. Use an edit summary that is appropriate to the edit (don't mention the bot in your own edit's edit summary at this time - make the edit becuase it is something you think actually needs to be edited), use the minor flag if appropriate. Place the single diff here. — xaosflux Talk 16:28, 14 August 2020 (UTC)[reply]
- @Xaosflux: this diff shows the general kind of edit the bot would be making. WikiMacaroonsCinnamon? 16:41, 14 August 2020 (UTC)[reply]
- Keep in mind that the references don't need to have their urls changed, as they show live updates. WikiMacaroonsCinnamon? 17:08, 14 August 2020 (UTC)[reply]
- OK, @WikiMacaroons: that looks better, you listed that you want to run this on 2000+ pages, do you have the list of the pages somewhere (is it dynamic like category based?). Is the format of the data you will be changing on all of these pages the same today? What will your bot do if the format changes on a page? — xaosflux Talk 17:53, 14 August 2020 (UTC)[reply]
- @Xaosflux: Ah, well I got that rough digit from getting the amount of articles in Category:COVID-19. I expect that not all of them contain rate counts, is there a category for this? Also, if the format changes I'll try to get the bot to find that, and notify me so I can rework the code to fit the new format... there may be a better way. WikiMacaroonsCinnamon? 19:11, 14 August 2020 (UTC)[reply]
- @Xaosflux: For a trial, do you reckon I should just focus it on the main continent Covid-related pages? WikiMacaroonsCinnamon? 12:45, 17 August 2020 (UTC)[reply]
- @WikiMacaroons: the trial will need to cover at least all of the different kinds of things that would get approved - it doesn't look like these are using a standard template - just wikitables - have you reviewed how many different things you will need to code for? — xaosflux Talk 13:32, 17 August 2020 (UTC)[reply]
- @Xaosflux: For a trial, do you reckon I should just focus it on the main continent Covid-related pages? WikiMacaroonsCinnamon? 12:45, 17 August 2020 (UTC)[reply]
- @Xaosflux: Ah, well I got that rough digit from getting the amount of articles in Category:COVID-19. I expect that not all of them contain rate counts, is there a category for this? Also, if the format changes I'll try to get the bot to find that, and notify me so I can rework the code to fit the new format... there may be a better way. WikiMacaroonsCinnamon? 19:11, 14 August 2020 (UTC)[reply]
- OK, @WikiMacaroons: that looks better, you listed that you want to run this on 2000+ pages, do you have the list of the pages somewhere (is it dynamic like category based?). Is the format of the data you will be changing on all of these pages the same today? What will your bot do if the format changes on a page? — xaosflux Talk 17:53, 14 August 2020 (UTC)[reply]
- Keep in mind that the references don't need to have their urls changed, as they show live updates. WikiMacaroonsCinnamon? 17:08, 14 August 2020 (UTC)[reply]
- @Xaosflux: this diff shows the general kind of edit the bot would be making. WikiMacaroonsCinnamon? 16:41, 14 August 2020 (UTC)[reply]
- @WikiMacaroons: those sort of design and content issues are something that you really need to work out before programming, this bot approval request is premature right now, you need to have a solid repeatable plan to have the bot component of it evaluated. The plan needs to be something that has existing support for the types of edits that will be made, or you will need to establish the consensus for the edits you will be making just as if you will be making them yourself (for example if you plan on introducing a new template to replace tables to thousands of articles). — xaosflux Talk 16:18, 17 August 2020 (UTC)[reply]
- @Xaosflux: I'm so sorry for being vague about the plan, I've been a bit busy but I'm free now. I've partly programmed it, here's the plan:
There will be templates of wikitables for each Covid page about a continent, minus Antarctica:
- COVID-19 pandemic in Africa
- COVID-19 pandemic in Europe
- COVID-19 pandemic in Asia
- COVID-19 pandemic in North America
- COVID-19 pandemic in Oceania
The bot will sweep templates of those continents, so the pages themselves will be dynamically updated. There will be a <!--Hidden Comment--> that tells you where to find the template to edit if you're a newcomer. It will also go into the countries within those and have templates for each graph of rates. Again, thank you, you're a saint for putting up with me. WikiMacaroonsCinnamon? 18:07, 17 August 2020 (UTC)[reply]
- @WikiMacaroons: our goal in BRFA is not just technical, but also to make sure there won't be editor interaction problems. For your idea above, this is getting much clearer - and the scope of the bot now sounds like it will be "update a small list of templates" which sounds very manageable. I'd like to see the templates created and in use first - so either you or others working on these pages updates should do that (and make sure you don't get push back on something like "we shouldn't use a template here"). You may want to discuss this with Wikipedia:WikiProject COVID-19 first. There is no time limit on these BRFA's as long as there is momentum. — xaosflux Talk 18:41, 17 August 2020 (UTC)[reply]
- @Xaosflux: "update a small list of templates" - I like the sound of that! I've left a message at WP COVID. WikiMacaroonsCinnamon? 09:25, 18 August 2020 (UTC)[reply]
- Right, @Xaosflux: Here's where we're at. I've spent a while programming the webscrapers for the bot, but have found a fatal flaw that means that I'll have to put aside next few days reworking the code. Hope to have the result with you soon. WikiMacaroonsCinnamon? 19:59, 9 September 2020 (UTC)[reply]
- Phew, @Xaosflux: That took longer than expected. The two templates that are currently available for listing covid rates are Europe and Asia.
- I hooked up the value-changing script that the bot would run on to my account and it created these diffs:
- Would you rather we set Europe and Asia running now while I figure out the other 4 continents, (not doing Antarctica, obviously) or program all the continents before approving the bot? Thanks, WikiMacaroonsCinnamon? 16:31, 2 October 2020 (UTC)[reply]
- P.S: I realise that the numbers don't have 1000 separation commas. (e.g 1000000, not 1,000,000) I've just put that in the code, so should be ok next time WikiMacaroonsCinnamon? 19:18, 2 October 2020 (UTC)[reply]
- Right, @Xaosflux: Here's where we're at. I've spent a while programming the webscrapers for the bot, but have found a fatal flaw that means that I'll have to put aside next few days reworking the code. Hope to have the result with you soon. WikiMacaroonsCinnamon? 19:59, 9 September 2020 (UTC)[reply]
- @Xaosflux: "update a small list of templates" - I like the sound of that! I've left a message at WP COVID. WikiMacaroonsCinnamon? 09:25, 18 August 2020 (UTC)[reply]
- {{BAGAssistanceNeeded}} can't look at this right now - but queuing it for attention. — xaosflux Talk 17:40, 12 October 2020 (UTC)[reply]
- @WikiMacaroons: How far along are you in figuring out the other continents? I think the others could be easily added as an amendment once ironed out...there are benefits to both ways. Would you object, Xaosflux? --TheSandDoctor Talk 18:45, 27 October 2020 (UTC)[reply]
- TheSandDoctor, I'm about halfway through North America, but Europe and Asia are fully finished now. Thanks for replying. WikiMacaroonsCinnamon? 19:21, 27 October 2020 (UTC)[reply]
- @TheSandDoctor: Would you rather that I finish North America before we move forward? WikiMacaroonsCinnamon? 18:25, 3 November 2020 (UTC)[reply]
- @WikiMacaroons: How long do you figure the rest of NA will take? --TheSandDoctor Talk 06:29, 4 November 2020 (UTC)[reply]
- TheSandDoctor, I've been a little busy and haven't been working on it, but now that I'm back on top of it, I reckon it can be done in the next week. WikiMacaroonsCinnamon? 19:12, 4 November 2020 (UTC)[reply]
- @TheSandDoctor: Phew, sorry that took longer than expected. Here are the diffs for the latest runs: 1 2 3. Thanks for your patience. WikiMacaroonsCinnamon? 17:00, 22 November 2020 (UTC)[reply]
- @TheSandDoctor: Sorry to be harassing you, I’m just checking that the previous ping went through. WikiMacaroonsCinnamon? 15:31, 25 November 2020 (UTC)[reply]
- @TheSandDoctor: Phew, sorry that took longer than expected. Here are the diffs for the latest runs: 1 2 3. Thanks for your patience. WikiMacaroonsCinnamon? 17:00, 22 November 2020 (UTC)[reply]
- TheSandDoctor, I've been a little busy and haven't been working on it, but now that I'm back on top of it, I reckon it can be done in the next week. WikiMacaroonsCinnamon? 19:12, 4 November 2020 (UTC)[reply]
- @WikiMacaroons: How long do you figure the rest of NA will take? --TheSandDoctor Talk 06:29, 4 November 2020 (UTC)[reply]
- @TheSandDoctor: Would you rather that I finish North America before we move forward? WikiMacaroonsCinnamon? 18:25, 3 November 2020 (UTC)[reply]
- TheSandDoctor, I'm about halfway through North America, but Europe and Asia are fully finished now. Thanks for replying. WikiMacaroonsCinnamon? 19:21, 27 October 2020 (UTC)[reply]
- @WikiMacaroons: How far along are you in figuring out the other continents? I think the others could be easily added as an amendment once ironed out...there are benefits to both ways. Would you object, Xaosflux? --TheSandDoctor Talk 18:45, 27 October 2020 (UTC)[reply]
Approved. Looks good to me. As per usual, if amendments to - or clarifications regarding - this approval are needed, please start a discussion on the talk page and ping. --TheSandDoctor Talk 18:54, 25 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.