Wikidata:Requests for permissions/Bot/Popcornbot
- 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--Ymblanter (talk) 08:33, 4 February 2015 (UTC)[reply]
Popcornbot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Popcorndude (talk • contribs • logs)
Task/s: Adding descriptions to categories.
Code: User:Popcorndude/botcode
Function details: This bot will start at en:Category:Contents and recursively check each one, adding "Wikipedia category page" as the description and instance of (P31) -> Wikimedia category (Q4167836) if either is missing. It uses the labels of Wikimedia category (Q4167836) as descriptions, and does so in every language in which the item is missing a description. --Popcorndude (talk) 01:08, 3 January 2015 (UTC)[reply]
- It might be good to skip all items on User:Multichill/Cross namespace --Pasleim (talk) 17:33, 5 January 2015 (UTC)[reply]
- For description is better: "Wikimedia category". --ValterVB (talk) 19:57, 5 January 2015 (UTC)[reply]
- User:Popcorndude/botcode-output has what it would do to the first 15 categories it encountered. "Wikimedia category" is the description for language codes en-gb and en-ca. I have modified the code to accept a list of items that it should skip. I could quite easily make modifications to the dictionary that holds the descriptions. Popcorndude (talk) 01:01, 6 January 2015 (UTC)[reply]
- For description is better: "Wikimedia category". --ValterVB (talk) 19:57, 5 January 2015 (UTC)[reply]
- Are we ready for approval here?--Ymblanter (talk) 20:01, 16 January 2015 (UTC)[reply]
- @Popcorndude: can you made some test edit? (10 or 20) --ValterVB (talk) 20:09, 16 January 2015 (UTC)[reply]
- [1] it appears to be working, though none of the edits are marked "bot", is there a setting I forgot to change in pywikibot? Also, this was slightly more than 10-20, I accidentally set it to do 10 categories, rather than edits. Sorry. Popcorndude (talk) 23:10, 16 January 2015 (UTC)[reply]
- Something went wrong. You edited the item Category:Wikipedia administration (Q2944611) 54 times but it should be done in one single edit. The edits will be marked as bot as soons as this request is approved. --Pasleim (talk) 17:30, 19 January 2015 (UTC)[reply]
- As I recall, I recieved an error when I tried to do it as a single edit, though the code doesn't contain any error checking, so I really have no idea why I changed that. Popcorndude (talk) 02:04, 20 January 2015 (UTC)[reply]
- Something went wrong. You edited the item Category:Wikipedia administration (Q2944611) 54 times but it should be done in one single edit. The edits will be marked as bot as soons as this request is approved. --Pasleim (talk) 17:30, 19 January 2015 (UTC)[reply]
- [1] it appears to be working, though none of the edits are marked "bot", is there a setting I forgot to change in pywikibot? Also, this was slightly more than 10-20, I accidentally set it to do 10 categories, rather than edits. Sorry. Popcorndude (talk) 23:10, 16 January 2015 (UTC)[reply]
- @Popcorndude: can you made some test edit? (10 or 20) --ValterVB (talk) 20:09, 16 January 2015 (UTC)[reply]
- What is the current situation?--Ymblanter (talk) 13:04, 29 January 2015 (UTC)[reply]
- @Popcorndude:--GZWDer (talk) 04:57, 30 January 2015 (UTC)[reply]
- The bot functioned as expected, though I have forgotten why it does each language individually. Popcorndude (talk) 13:36, 30 January 2015 (UTC)[reply]
- I am afraid you would need to modify it in such a way that it does everything in one edit, not every language separately. Once this has been done, I can approve the task.--Ymblanter (talk) 07:53, 3 February 2015 (UTC)[reply]
- Sorry, I forgot to say so, I corrected that in my local copy of the code, but forgot to update the copy I linked to above. I have corrected the issue in both places. Popcorndude (talk) 13:02, 3 February 2015 (UTC)[reply]
- I am afraid you would need to modify it in such a way that it does everything in one edit, not every language separately. Once this has been done, I can approve the task.--Ymblanter (talk) 07:53, 3 February 2015 (UTC)[reply]
- The bot functioned as expected, though I have forgotten why it does each language individually. Popcorndude (talk) 13:36, 30 January 2015 (UTC)[reply]
- @Popcorndude:--GZWDer (talk) 04:57, 30 January 2015 (UTC)[reply]