Commons:Bots/Requests/MerlLinkBot

From Wikimedia Commons, the free media repository
Jump to: navigation, search

MerlLinkBot

Operator: Merlissimo (talk)

Bot's tasks for which permission is being sought: The bot replaces urls that have to be changed. This can be only a domain change or a more complex page structure change on a website. Links are dectected with the help of the api (and not with regex) and are only replaced if the webserver of the new url returns a 200-status-response for that new resource. Links in “normal article text” are not changed.

Automatic or Manually Assisted: supervised (with test run before)

Edit type (e.g. Continuous, daily, one time run): when links have to be changed ;-)

Maximum edit rate (eg edits per minute): 4 epm

Bot flag requested: (Y/N): Y

Programming Language(s): Java (Framework written by myself - long time usage in dewiki with two bots)

Already has a bot flag : dewp, enwp, other

Merlissimo (talk) 23:29, 19 May 2009 (UTC)

Discussion

How should i fix urls on file namespace which are mentioned in the source field of the Information/Paintung template? e.g. at File:APEC2005_Hanbok.jpg the content of http://www.whitehouse.gov/asia/2005/photoessay/summit/15.html is now available at http://georgewbush-whitehouse.archives.gov/asia/2005/photoessay/summit/15.html. Merlissimo (talk) 00:49, 20 May 2009 (UTC)

  • Seems like a nice, and neat bot. Would you mind running the bot, with the script a bit more? Evaluating the bot behaviour from just one contribution is a bit hard. Kanonkas // talk // e-mail // 12:36, 20 May 2009 (UTC)
You can have a look at enwiki because i have no non-file-ns replacements at the moment for commons. But many source links like the example above have changed. On dewiki we decided to replace the source locations with "http://newlink.tld (was: <nowiki>http://originallink.tld</nowiki>)". I could also simple replace them or change only the link target and leave the old url as linktext. (e.g. [http://www.whitehouse.gov/asia/2005/photoessay/summit/15.html http://georgewbush-whitehouse.archives.gov/asia/2005/photoessay/summit/15.html]. I did not found any informations on this wiki how this should be handled. Merlissimo (talk) 13:36, 20 May 2009 (UTC)
  • Could you please make more test edits? --EugeneZelenko (talk) 14:46, 21 May 2009 (UTC)
I have more dead file source links. Should i simple replace them? Merlissimo (talk) 15:19, 21 May 2009 (UTC)
Ok, i have asked at Commons:Village_pump#dead_link_as_file_source. So I'll do some testedits and replacing to url. Merlissimo (talk) 12:49, 22 May 2009 (UTC)