edsu / anon

tweet about anonymous Wikipedia edits from particular IP address ranges
Creative Commons Zero v1.0 Universal
973 stars 152 forks source link

Wikidata Use labels as Name #186

Open wolf128058 opened 1 year ago

wolf128058 commented 1 year ago

In Case of a Wikidata-Articles the Label would be a little more interesting than that Q-Number for the Change-Alert. For example https://www.wikidata.org/wiki//Q42 has the label "Douglas Adams" in DE.

To get that label you could query https://www.wikidata.org/wiki/Special:EntityData/Q42.json for the JMESPath entities.[*][0][0].labels.de.value ... or what ever iso2alpha your bot likes.