Wikipedia:Bots/Requests for approval/Hazard-Bot 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 Withdrawn by operator.
Operator: Hazard-SJ (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 08:10, Sunday April 14, 2013 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): Python
Source code available: Pywikipedia with custom code not yet publicly available
Function overview: Removing interlanguage links to from pages if the link is already on Wikidata
Links to relevant discussions (where appropriate):
Edit period(s): Continuous
Estimated number of pages affected:
Exclusion compliant (Yes/No): Yes, plus skips if {{noexternallanglinks}} is used
Already has a bot flag (Yes/No): Yes
Function details: The bot will remove interlanguage links which are present on Wikidata (it will also attempt to add to Wikidata first, but this is not directly related as such approval is for Wikidata, not here, but just mentioned to show that it could catch some that may have already been left behind by, for example, Addbot). I've so far made two tests: one with a slight error in the link in the edit summary and on with that slight error fixed. Hazard-SJ ✈ 08:10, 14 April 2013 (UTC)[reply]
Discussion
editWhere will the bot source a list of pages to check from? ·Add§hore· Talk To Me! 12:07, 14 April 2013 (UTC)[reply]
- Addbot and another global WikiData bot already this. While I'm not opposed to having multiple bots check for links, I am concerned about edit conflicts. How will it handle those? If it's removal, there shouldn't be an issue, but I'm curious if the starttimestamp or basetimestamp parameters are set when editing, or if there are other methods being used to handle conflicts.—cyberpower ChatOffline 15:03, 15 April 2013 (UTC)[reply]
- Legobot would be the other bot. In addition, it contains the default edit conflicting means when saving the article, but I could change it to take the initial access time of the page and recheck that it is still the same version before saving, or to directly use the parameters you mentioned via an API query rather than the standard "put" function on PWB. Hazard-SJ ✈ 01:31, 16 April 2013 (UTC)[reply]
- I'm all for finding ways to improve things, but is there a reason not to simply re-use Addbot's code? MBisanz talk 23:01, 15 April 2013 (UTC)[reply]
- The code is currently, still, a work in progress. I am looking to commit my next version to github in a few days or so. ·Add§hore· Talk To Me! 23:50, 15 April 2013 (UTC)[reply]
- That (↑) would be the main issue, in addition to my unfamiliarity with his framework and my limited PHP knowledge. Also, what I meant by "not yet available", if it confused you, I meant that I had functional code (for at least the Wikipedia part of it, though I need more testing to verify the Wikidata part, which I'm also in trial for, but I need at least on Wikipedia to work from for effectiveness). Hazard-SJ ✈ 01:31, 16 April 2013 (UTC)[reply]
- Approved for trial (200 edits or 4 days). Please provide a link to the relevant contributions and/or diffs when the trial is complete. ·Add§hore· Talk To Me! 09:49, 16 April 2013 (UTC)[reply]
- Sorry for the delay so far, just noting that I'm still rewriting parts of the code to detect certain errors, and am a bit busy in real life. Hazard-SJ ✈ 21:18, 27 April 2013 (UTC)[reply]
- Also, waiting for a reply from Addshore on the Wikidata request ... if he decides to supply the list (like he suggested) for additions to Wikidata, I'll likely drop this request. Hazard-SJ ✈ 00:50, 28 April 2013 (UTC)[reply]
- Withdrawn by operator. I'll be putting my work in from the Wikidata side via a list supplied by Addshore instead. Hazard-SJ ✈ 23:40, 23 May 2013 (UTC)[reply]
- Also, waiting for a reply from Addshore on the Wikidata request ... if he decides to supply the list (like he suggested) for additions to Wikidata, I'll likely drop this request. Hazard-SJ ✈ 00:50, 28 April 2013 (UTC)[reply]
- Sorry for the delay so far, just noting that I'm still rewriting parts of the code to detect certain errors, and am a bit busy in real life. Hazard-SJ ✈ 21:18, 27 April 2013 (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.