Wikipedia:Bots/Requests for approval/AndreasJSbot 2
This is the current revision of this page, as edited by MalnadachBot (talk | contribs) at 10:18, 9 February 2023 (Fixed Lint errors. (Task 12)). The present address (URL) is a permanent link to this version.
- The following discussion is an archived debate. Please do not modify it. Subsequent comments should be made in a new section. The result of the discussion was Approved.
Automatic or Manually Assisted: Automatic
Programming Language(s): Python
Function Summary: Change Template:Wikisource to Template:Wikisourcelang where appropriate
Edit period(s) (e.g. Continuous, daily, one time run): occasional one time run (maybe once a month)
Edit rate requested: 6 edits per min
Already has a bot flag (Y/N): Y
Function Details: run replace.py in regex mode on pages that link to the template using a xml dump:
python replace.py -lang:en -family:wikipedia -regex -ref:Template:Wikisource -xml '{{[Ww]ikisource\|:*([a-z][a-z][a-z]?):' '{{Wikisourcelang|\1|'
Discussion
[edit]- Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete.. As a side note, shouldnt you be using maxlag? —Reedy Boy 16:41, 22 January 2008 (UTC)[reply]
- Works fine[1]. Andreas (T) 17:27, 6 February 2008 (UTC)[reply]
- Because most of the pages that link to template the English wikisource, I use xml to avoid accessing many pages that need no work. This is very slow because pywikipedia.repalce.py does not support the combination -xml with -ref. If I use the -ref option, most pages that are downloaded are not changed. Maxlag is set to the default of 5. Andreas (T) 17:36, 6 February 2008 (UTC)[reply]
- The above discussion is preserved as an archive of the debate. Please do not modify it. Subsequent comments should be made in a new section.