Wikipedia:Bots/Requests for approval/KolbertBot
- 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: Jon Kolbert (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 21:01, Thursday, August 10, 2017 (UTC)
Automatic, Supervised, or Manual: Supervised
Programming language(s): Python
Source code available: Pywikibot
Function overview: replace http links with https, if available.
Links to relevant discussions (where appropriate): Why we should convert external links to HTTPS wherever possible
Edit period(s): One-time
Estimated number of pages affected: ~35,000
Namespace(s): mainspace and template
Exclusion compliant (Yes/No): Yes
Function details: Modify the following links
- University of British Columbia -
http://www.ubc.ca/
tohttps://www.ubc.ca/
- WebCite -
http://www.webcitation.org/
tohttps://www.webcitation.org/
- The Register -
http://www.theregister.co.uk/
tohttps://www.theregister.co.uk/
- University of Ottawa -
http://www.uottawa.ca/
tohttps://www.uottawa.ca/
- University of Saskatchewan -
http://www.usask.ca/
tohttps://www.usask.ca/
- University of Regina -
http://www.uregina.ca/
tohttps://www.uregina.ca/
- Simon Fraser University -
http://www.sfu.ca/
tohttps://www.sfu.ca/
- University of Victoria -
http://www.uvic.ca/
tohttps://www.uvic.ca/
- Vancouver Island University -
http://www.viu.ca/
tohttps://www.viu.ca/
- Capilano University -
http://www.capilanou.ca/
tohttps://www.capilanou.ca/
- Emily Carr University of Art and Design -
http://www.ecuad.ca/
tohttps://www.ecuad.ca/
- University of the Fraser Valley -
http://www.ufv.ca/
tohttps://www.ufv.ca/
- Trinity Western University -
http://www.twu.ca/
tohttps://www.twu.ca/
- British Columbia Institute of Technology -
http://www.bcit.ca/
tohttps://www.bcit.ca/
- University of British Columbia Okanagan -
http://ok.ubc.ca/
tohttps://ok.ubc.ca/
- Thompson Rivers University -
http://www.tru.ca/
tohttps://www.tru.ca/
- University of Winnipeg -
http://www.uwinnipeg.ca/
tohttps://www.uwinnipeg.ca/
- Université de Saint-Boniface -
http://ustboniface.ca/
tohttps://ustboniface.ca/
- Brandon University -
http://www.brandonu.ca/
tohttps://www.brandonu.ca/
- University of New Brunswick -
http://www.unb.ca/
tohttps://www.unb.ca/
- Université de Moncton -
http://www.umoncton.ca/
tohttps://www.umoncton.ca/
- Memorial University of Newfoundland -
http://www.mun.ca/
tohttps://www.mun.ca/
- Dalhousie University -
http://www.dal.ca/
tohttps://www.dal.ca/
- Saint Mary's University (Halifax) -
http://www.smu.ca/
tohttps://www.smu.ca/
- Concordia University -
http://www.concordia.ca/
tohttps://www.concordia.ca/
- McGill University -
http://mcgill.ca/
tohttps://mcgill.ca/
- McGill University -
http://www.mcgill.ca/
tohttps://www.mcgill.ca/
- Bishop's University -
http://www.ubishops.ca/
tohttps://www.ubishops.ca/
- Université du Québec à Montréal -
http://www.uqam.ca/
tohttps://www.uqam.ca/
- University of Alberta -
http://www.ualberta.ca/
tohttps://www.ualberta.ca/
- University of Calgary -
http://www.ucalgary.ca/
tohttps://www.ucalgary.ca/
- University of Lethbridge -
http://www.ulethbridge.ca/
tohttps://www.ulethbridge.ca/
- First Nations University of Canada -
http://www.fnuniv.ca/
tohttps://www.fnuniv.ca/
- Université de Sherbrooke -
http://www.usherbrooke.ca/
tohttps://www.usherbrooke.ca/
- Université Laval -
http://www.ulaval.ca/
tohttps://www.ulaval.ca/
- Carleton University -
http://www2.carleton.ca
tohttps://carleton.ca/
- Carleton University -
http://www.carleton.ca
tohttps://carleton.ca/
- Carleton University -
http://carleton.ca
tohttps://carleton.ca/
- Université du Québec à Trois-Rivières -
http://www.uqtr.ca
tohttps://www.uqtr.ca/
- McMaster University -
http://www.mcmaster.ca
tohttps://www.mcmaster.ca/
- University of Waterloo -
http://uwaterloo.ca
tohttps://uwaterloo.ca/
- University of Waterloo -
http://www.uwaterloo.ca
tohttps://www.uwaterloo.ca/
- University of Fredericton -
http://www.ufred.ca
tohttps://www.ufred.ca/
- Government of Alberta -
http://www.alberta.ca
tohttps://www.alberta.ca/
- Government of Manitoba -
http://www.gov.mb.ca
tohttps://www.gov.mb.ca/
- Government of Ontario -
http://www.ontario.ca
tohttps://www.ontario.ca/
- Government of Nova Scotia -
http://www.novascotia.ca
tohttps://novascotia.ca/
- Government of Nova Scotia -
http://novascotia.ca
tohttps://novascotia.ca/
- Government of Newfoundland and Labrador -
http://www.gov.nl.ca
tohttps://www.gov.nl.ca/
- Government of Canada -
http://canada.ca
tohttps://www.canada.ca/
- Wired UK -
http://www.wired.co.uk
tohttps://www.wired.co.uk/
Discussion
editShould this be approved, what would be the preferred edit summary format? Jon Kolbert (talk) 21:01, 10 August 2017 (UTC)[reply]
The plan to change WebCite links to https://www.webcitation.com/ appears to be incorrect. WebCite is at www.webcitation.org, not www.webcitation.com. —RP88 (talk) 23:55, 10 August 2017 (UTC)[reply]
Fixed Thank you for spotting that transcription error, it has been amended. Jon Kolbert (talk) 00:27, 11 August 2017 (UTC)[reply]
Sometimes URLs are embedded in archive URLs. For example (non-working):
In this case one wouldn't change to https://www.theregister.co.uk/ because it may break the webarchive.org.uk URL which may interpret it as a different URL and unable to find the archive. This isn't a real world example, but there are ones like it. Plus changing to https wouldn't do anything anyway since it's part of the path. -- GreenC 00:52, 11 August 2017 (UTC)[reply]
- I do believe that supervising the edits while they take place is the right step to prevent such erroneous replacements - but in any case, should a mistake happen,
- https://www.webarchive.org.uk/wayback/archive/20130202200017/https://www.babraham.ac.uk/ both do work. I have also tested this with webcitation.org as well.
- In each three cases, both links are fully functional. Jon Kolbert (talk) 01:18, 11 August 2017 (UTC)[reply]
- I wonder if this, therefore, confirms all cases? I would be happier to see confirmation from the archive.org website that this is the case. Apart from that, this is a very good bot task - and one that needs doing. I believe that with the link provided we have consensus - and we have done similar tasks in the past (The Guardian springs to mind as one that was recently done, although I can't remember the name of the bot). TheMagikCow (T) (C) 10:40, 11 August 2017 (UTC)[reply]
- Fiddling around with URLs in WebCitation links, is kind of sort of pushing the boundaries of WP:COSMETICBOT, likewise with other archive URLs. As the operator of IABot, I would really advise against having your bot handle these and leaving it up to IABot. As a BAG member I see no issues with this task and redundancy never hurts for a supported task.—CYBERPOWER (Chat) 11:01, 11 August 2017 (UTC)[reply]
- I wonder if this, therefore, confirms all cases? I would be happier to see confirmation from the archive.org website that this is the case. Apart from that, this is a very good bot task - and one that needs doing. I believe that with the link provided we have consensus - and we have done similar tasks in the past (The Guardian springs to mind as one that was recently done, although I can't remember the name of the bot). TheMagikCow (T) (C) 10:40, 11 August 2017 (UTC)[reply]
Jon Kolbert, it should be possible to avoid the archive URLs (of which there are many) by regex'ing URLs from the source including http + the first character preceding, and if that character is "/" skip. -- GreenC 13:57, 11 August 2017 (UTC)[reply]
Done Perfect, would it also be permissible to use AWB as well? Cheers. Jon Kolbert (talk) 18:47, 11 August 2017 (UTC)[reply]
- What would you be use AWB for?—CYBERPOWER (Chat) 14:36, 12 August 2017 (UTC)[reply]
- I was originally using Pywikibot with a list generated from Special:LinkSearch, but I find that it'll be easier to manage and sort replacement lists in AWB instead, especially if using Regex. Jon Kolbert (talk) 15:06, 12 August 2017 (UTC)[reply]
- What would you be use AWB for?—CYBERPOWER (Chat) 14:36, 12 August 2017 (UTC)[reply]
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete.—CYBERPOWER (Chat) 15:13, 12 August 2017 (UTC)[reply]
- I've requested AWB access for the bot here. Jon Kolbert (talk) 15:46, 12 August 2017 (UTC)[reply]
Done, though obviously the bot doesn't have a flag yet. Primefac (talk) 15:50, 12 August 2017 (UTC)[reply]
- I've also requested the confirmed permission here as modifying links triggers a CAPTCHA Jon Kolbert (talk) 16:08, 12 August 2017 (UTC)[reply]
- I've requested AWB access for the bot here. Jon Kolbert (talk) 15:46, 12 August 2017 (UTC)[reply]
Trial complete. - I've noticed that while the bot only pulls pages based on active links, it can still trip up where archive links are used. I've done some additional testing using The Globe and Mail - a link that has been archived many times, and it replaces the in the archive URL. While not broken, it's not ideal. Jon Kolbert (talk) 17:47, 12 August 2017 (UTC)[reply]
- Please explain this edit.—CYBERPOWER (Around) 20:10, 12 August 2017 (UTC)[reply]
- I was unable to find a way in AWB to both change non-archive URLs and skip archive URLs. I have since decided that using Pywikibot should be the best option here as skipping changes with
"[\/*]http:\/\/"
has worked without a hitch, as shown here. Would it be possible to run a trial using Pywikibot? Jon Kolbert (talk) 09:59, 15 August 2017 (UTC)[reply]
- I was unable to find a way in AWB to both change non-archive URLs and skip archive URLs. I have since decided that using Pywikibot should be the best option here as skipping changes with
- Hi Jon, could the regex be run on this testcases page and see what happens? User:GreenC/testcases/kolbert -- GreenC 14:06, 15 August 2017 (UTC)[reply]
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete.. This trial is for testing Pywikibot. Please run on Green's test cases first.—CYBERPOWER (Chat) 13:02, 16 August 2017 (UTC)[reply]
Trial complete. - Trial complete, I ran it on Green's test cases without issue, as well as the ~46 remaining pages with uottawa.ca links. Cheers! Jon Kolbert (talk) 05:26, 17 August 2017 (UTC)[reply]
Approved.—CYBERPOWER (Chat) 18:22, 17 August 2017 (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.