Wikidata:Requests for permissions/Bot/Symac bot 8
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) 18:11, 8 September 2015 (UTC)[reply]
Symac bot 8 edit
Symac bot (talk • contribs • new items • new lexemes • SUL • Block log • User rights log • User rights • xtools)
Operator: Symac (talk • contribs • logs)
Task/s: add Twitter (X) username (P2002) based on what is found on English wikipedia.
Code: https://github.com/symac/wikidata/tree/master/twitter
Function details:
- 01_listePageTemplate.py gets all pages linked to en:template:twitter
- 02_getTwitterAccount.py parses each article and check if the twitter template is used in the "External links" section (to exclude twitter links used as source of a ref for example).
- 03_getQ.py finds the wikidata page associated with the article
- 04_verifAccounts.py using the twitter API, we verify that the user account exists (we also check that the account is "verified" according to twitter but not sure this information is useful on wikidata)
- 05_loadIntoWD.py will load to wikidata the values
Some examples :
I have extracted to github the 7,721 accounts that should be added to this CSV file on github if you want to have a look at it. Symac (talk) 22:31, 3 September 2015 (UTC)[reply]
--Symac (talk) 22:31, 3 September 2015 (UTC)[reply]