Wikidata:Requests for permissions/Bot/Wicci'o'Bot
- 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) 12:11, 7 April 2024 (UTC)[reply]
Wicci'o'Bot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Wiccio (talk • contribs • logs)
Task/s: Import the identifiers of the new properties created for TheTVDB (Q15616250), nientepopcorn (Q123434360) (and more properties I plan to request to be added shortly) inherent in the film and TV industry, using IMDb ID (P345) as source.
Code: Python code that exploits Pywikibot. You can check it at CodeShare but I can share it elsewhere if necessary.
Function details: Internet Movie Database (Q37312) in the film and TV industry is unquestionably the largest and most widely used database, so many of the sites in this sector field have redirects to IMDb. This primacy also holds true in Wikidata: almost all items in the category related to movies have a IMDb ID (P345). The script therefore performs these actions:
- from the database page of the item to be populated, it reads the associated IMDb ID;
- it checks in Wikidata whether it has been associated with an item and returns the data;
- (especially if the property to be populated is not new) it checks whether the value of the already existing property is equal to the value read from the first job in this list;
- it modifies or adds the value to the item property;
- it insert label and description for the title.
The language constraint is applied on some properties, so in the meantime I'm taking the opportunity to insert label and description where are missing.
I have already made several changes with this script on my personal user. You can view them on Special:Contributions/Wiccio.
--Wiccio (talk) 01:38, 15 March 2024 (UTC)[reply]
- seems good BrokenSegue (talk) 15:14, 15 March 2024 (UTC)[reply]
- I added job no. 5 (and its description) to the list of bot actions. --Wiccio (talk) 12:28, 19 March 2024 (UTC)[reply]
- I started the bot so that you can have some edits to evaluate. Is there anything else I need to do for approval? --Wiccio (talk) 06:32, 3 April 2024 (UTC)[reply]
- I added job no. 5 (and its description) to the list of bot actions. --Wiccio (talk) 12:28, 19 March 2024 (UTC)[reply]
- I will approve the bot in a couple of days provided no objections have been raised.--Ymblanter (talk) 09:51, 5 April 2024 (UTC)[reply]