Home

Awesome

bot powering twitter.com/happybdauthors and facebook.com/happybdauthors

Victor_Hugo_HAPPY_BIRTHDAY

Recipe

using SPARQL

Simply customize the SPARQL query to your needs

using a dump and Couchdb

This was the bot's first implementation: more rigid and requiring more resources but I let it here as an inspiration:

curl https://dumps.wikimedia.org/wikidatawiki/entities/latest-all.json.gz |gzip -d | wikidata-filter --claim P106:Q36180 > isWriter.json

authors-per-day

a view ready to be queried by day and month by our grumpy Victor Hugo!

The result

michel-verne

adam-bartsch.png

and for the magic behind twitter and facebook displaying the right data despite Inventaire being a SPA: twitter metadata changed dynamically + prerender-ing

Authors tomorrow

npm run authors-tomorrow fetches the data of the authors of the next day and help you match them with twitter users in order to improve wikidata data before the bot comes to use it.

This will open a basic web page : tomorrow-ui

To edit wikidata using the validate button, a rightly configured instance of wikidata-agent is expected to be running on port 4115 of your machine.