Commons:Bots/Requests/SchlurcherBot6

SchlurcherBot (talk · contribs)

Operator: Schlurcher (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought: Panoramio has been discontinued. Change to archived link for all links in pages from category Category:Photos from Panoramio

Automatic or manually assisted: Automatic

Edit type (e.g. Continuous, daily, one time run): One time run.

Maximum edit rate (e.g. edits per minute): 5

Bot flag requested: (Y/N): N (Bot has flag already)

Programming language(s): Pywikibot

Schlurcher (talk) 21:19, 22 November 2017 (UTC)[reply]

Discussion

Panoramio has been discontinued on 4th of November 2016. The original website was still reachable (read-only) till 4th of November 2017. Since then, all links to Panoramio will lead to a page explaining that Panoramio has been discontinued. Panoramio links are given in a lot of files as source documentation. The proposal here is to exchange these with archive.org links dated arround 4th of November 2016. Here is what the bot does:

  1. Check if the page contains links from panoramio; example: [1]
  2. Check if the page was archived in archive.org; example: [2]
  3. If both conditions are met, replace current link to panoramio with archived link.

Test edits: [3] [4] [5] [6] [7] [8] [9] [10]. Thanks. --Schlurcher (talk) 19:50, 28 April 2019 (UTC)[reply]

Looks OK for me. --EugeneZelenko (talk) 14:00, 29 April 2019 (UTC)[reply]
Support this, looks ok. --Achim (talk) 13:43, 3 May 2019 (UTC)[reply]

Approved. --Krd 14:01, 3 May 2019 (UTC)[reply]