Wikidata:Requests for permissions/Bot/Rezabot
The following discussion is closed. Please do not modify it. Subsequent comments should be made in a new section. A summary of the conclusions reached follows.
- Approved following the consensus in the discussion--Ymblanter (talk) 08:07, 5 March 2013 (UTC)[reply]
Rezabot edit
- Operator: User:Reza1615
- Task: label and links those are not existing in the item (Item Updating).
- code lang: Python
My bot get interwikis from language links which are in an item from API and adds label and links those are not existing in the item. it will works like this
- About Me: I am Sysop, Check User and member of Bot Approvals Group at fa.wiki and my bot is admin-bot in fa.wiki I developed many bot which are run on tr, cbk, ar, ur, fa.wiki.Reza1615 (talk) 09:22, 20 February 2013 (UTC)[reply]
- Could you do some test edits on your bot? --Stryn (talk) 09:52, 21 February 2013 (UTC)[reply]
- sure :)Reza1615 (talk) 10:28, 21 February 2013 (UTC)[reply]
Your bot did some clealy false edits here: https://www.wikidata.org/w/index.php?title=Q2899546&action=history which I reverted. This is am disambuigationpages which should only contain links to pages named "Luis" --Sk!d (talk) 10:55, 21 February 2013 (UTC)[reply]
- Same with Louis. It should contain only links about given name "Louis". --Stryn (talk) 11:01, 21 February 2013 (UTC)[reply]
Also could you please change your bot to only edit the item once? Instead of many changes in a short period of time. --Sk!d (talk) 11:06, 21 February 2013 (UTC)[reply]
- Bot works like mediawiki:gadget-slurpInterwiki.js and it imports interwikis according to all wiki links that are in an item.
- Bot adds wikipedia's interwikis which are locked because of other lang conflicts. for example if ar.wiki cause conflict for Q123 normally iterwikibots doesn't allow to add other links (which are correct and not double) to wikidata and this problems will make none interwiki problem for other languages! now people solve it with switching between languages by import interwiki JS tool.
- Now bot adds only links which are not duplicate in wikidata and they are listed as interwiki in local wikis.
- @Sk!d: DoneI added a new query which is solved this problem.
Bot has two modes and it switchs between them - 1-when importing interwikis (which are not in item) doesn't have double error (none of interwikis doesn't have problem) it will import interwikis in one edit.
- 2-when importing iterwikis has error so it check interiwikis one by one and add each one has no double-item error it will import.
now bot at the first works mode 1 if it had error it will switch to mode 2 so in some cases it will have one edit and for some cases it will have many edits in one item.Reza1615 (talk) 11:12, 21 February 2013 (UTC)[reply]
- @Stryn:I can check page's templates and if they had disambiguation template doesn't add them to normal items.Reza1615 (talk) 12:16, 21 February 2013 (UTC)[reply]
- Disambiguation page was not only problem in this. But also wrong given names. w:sl:Ljudevit or w:pt:Luigi are not the same names as Louis. --Stryn (talk) 12:21, 21 February 2013 (UTC)[reply]
- these are local interwikis and except user no-one (bots) can distinguish between them. for example when we import interwikis by mediawiki:gadget-slurpInterwiki.js it will do the same.
- in my opinion it will solve by user and this bot can solve many none interwiki articles.Reza1615 (talk) 12:27, 21 February 2013 (UTC)[reply]
- Disambiguation page was not only problem in this. But also wrong given names. w:sl:Ljudevit or w:pt:Luigi are not the same names as Louis. --Stryn (talk) 12:21, 21 February 2013 (UTC)[reply]
Question How does your bot check for interwikiconflicts? --Sk!d (talk) 23:58, 22 February 2013 (UTC)[reply]
- I use Wikidata:Wiki import task force for these items when they finished I will write a query and code to find other wiki's confilicts or ask User:Merlissimo to collect data for other wikisReza1615 (talk) 07:23, 23 February 2013 (UTC)[reply]
- Support If 1- it adds labels 2-it edits for one time. Mojdeh.h (talk) 10:07, 25 February 2013 (UTC)[reply]
- As I told Sk!d it was a bug and I solved it about labels I Changed code to add label according to mediawiki:gadget-slurpInterwiki.js label maker partReza1615 (talk) 10:51, 25 February 2013 (UTC)[reply]
- About setting an existing API doesn't let change all of items at once but we can do this in creating an item. Ladsgroup (talk) 10:49, 27 February 2013 (UTC)[reply]
- it is possible here bot added two labels with one edit also mediawiki:gadget-slurpInterwiki.js does the same Job via API here .Reza1615 (talk) 11:43, 27 February 2013 (UTC)[reply]
- About setting an existing API doesn't let change all of items at once but we can do this in creating an item. Ladsgroup (talk) 10:49, 27 February 2013 (UTC)[reply]
- SupportMonobit (talk) 17:21, 26 February 2013 (UTC)[reply]
Question How does your bot check for and skip interwiki links to a section (for example: de:Figuren der Harry-Potter-Romane#Hermine Granger) ?--Snaevar (talk) 01:06, 27 February 2013 (UTC)[reply]
- I set bot not to change in items which have # in their links. so it will leave that item because solving these items is very tricky and sometimes only human can edit them-Reza1615 (talk) 08:06, 27 February 2013 (UTC)[reply]
- Support--Calak (talk) 13:02, 4 March 2013 (UTC)[reply]
I change the code and it will leave items which has conflict or # (like old interwiki.py code) so it will not add interwikis that reported in up of this request.Reza1615 (talk) 10:28, 1 March 2013 (UTC)[reply]
- I am about to close this as successful if there is no opposition forthcoming today.--Ymblanter (talk) 06:38, 4 March 2013 (UTC)[reply]