Twitter WikidataMeter Bot
I'm the code, and deployment of Twitter bot WikidataMeter. I tweet a few fun things about Wikidata as it grows.
Tweets
Feel free to suggest more tweets by creating an Github issue.
Everytime another 1,000,000 edits happens
Development
You'll need to install my dependencies using composer.
composer install
And in order to fully integrate with the services you'll need to populate a .env
file. Checkout .env.example
for what is needed.
Then just run the main script.
php run.php
Deployment
I run on Github Actions on a cron using a docker container.
You can build the docker container using the following.
docker build . -t twitter-wikidatameter
Makes use of
Services:
- Github Actions - Building Docker images & running the cron for the bot
- Wikidata - Getting the data
- JSONStorage.net - Some persistence between runs
- Twitter - For publishing the tweets
Libraries:
- addwiki/mediawiki-api-base - Talking to the Wikidata API
- atymic/twitter - Talking to the Twitter API
- vlucas/phpdotenv - Reading env vars from a .env file
- guzzlehttp/guzzle - Talking to the JSONStorage.net API