Wikidata:Requests for permissions/Bot/Symac bot 3
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) 13:57, 11 November 2014 (UTC)[reply]
Symac bot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Symac (talk • contribs • logs)
Task/s: Following my first RfP (which allowed me to describe ~10k french movies), I have been crawling all subcategories of fr:Catégorie:Film par pays et par année de sortie (Movies by country and release year) on French wikipedia to fetch data about ~30k movies from the rest of the world.
Code: see on gist, based on pywikibot
Function details: Parsing the categorys name, I can extract the data I need. For example, all articles in the category : fr:Catégorie:Film albanais sorti en 2001 will get (if not present) the following properties :
- instance of (P31) => film (Q11424) (added only if no P31 exists, to prevent overloading short movie with movie)
- country of origin (P495) => Albania (Q222) (I have created equivalence between adjectives and country Q, as seen beginning line 39 in my script)
- publication date (P577) => 2001
Script has been run on some records so far :
Let me know if you have any question about this script. --Symac (talk) 15:40, 7 November 2014 (UTC)[reply]
- Will be approved tomorrow assuming no objections have been raised.--Ymblanter (talk) 12:55, 9 November 2014 (UTC)[reply]