{"id":15683955,"url":"https://github.com/addshore/twitter-wikidatameter","last_synced_at":"2025-06-25T08:38:10.108Z","repository":{"id":38035097,"uuid":"356304822","full_name":"addshore/twitter-wikidatameter","owner":"addshore","description":"A Twitter bot powered by Github Actions tweeting various Wikimedia milestones to some Twitter bots","archived":false,"fork":false,"pushed_at":"2023-12-28T17:40:38.000Z","size":278,"stargazers_count":10,"open_issues_count":7,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-07T14:51:49.368Z","etag":null,"topics":["bot","github-actions","php","twitter","twitter-bot","wikidata","wikimedia","wikipedia"],"latest_commit_sha":null,"homepage":"https://twitter.com/WikidataMeter","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/addshore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-09T14:48:38.000Z","updated_at":"2023-07-05T09:55:16.000Z","dependencies_parsed_at":"2024-10-23T16:46:26.271Z","dependency_job_id":"2a51994c-95b1-4aec-8a0f-c63eed9bbbbf","html_url":"https://github.com/addshore/twitter-wikidatameter","commit_stats":{"total_commits":161,"total_committers":4,"mean_commits":40.25,"dds":"0.22360248447204967","last_synced_commit":"f1c1471d6932ddb6c8d6ac0b51d9ddd5e8ee4a4c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/addshore/twitter-wikidatameter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addshore%2Ftwitter-wikidatameter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addshore%2Ftwitter-wikidatameter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addshore%2Ftwitter-wikidatameter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addshore%2Ftwitter-wikidatameter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/addshore","download_url":"https://codeload.github.com/addshore/twitter-wikidatameter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addshore%2Ftwitter-wikidatameter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261837342,"owners_count":23217411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","github-actions","php","twitter","twitter-bot","wikidata","wikimedia","wikipedia"],"created_at":"2024-10-03T17:09:20.498Z","updated_at":"2025-06-25T08:38:10.080Z","avatar_url":"https://github.com/addshore.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twitter WikidataMeter Bot\n\nI'm the code, and deployment of Twitter bot [WikidataMeter](https://twitter.com/WikidataMeter).\nI tweet a few fun things about Wikidata as it grows.\n\n## Tweets\n\nFeel free to suggest more tweets by creating an Github issue.\n\n### Everytime another 10,000,000 edits happens\n\nBot checks this data every 30 minutes, the value that is checked is live.\n\n![](https://i.imgur.com/mgjNAXs.png)\n\n### Everytime Item count crosses a 1,000,000 boundary\n\nBot checks this data every 30 minutes, the value that is checked is calculated once a day.\n\n![](https://i.imgur.com/ShAGn9b.png)\n\n### Everytime Property count crosses a 100 boundary\n\nBot checks this data every 30 minutes, the value that is checked is calculated once a day.\n\n![](https://i.imgur.com/Kp8Jx2b.png)\n\n### Everytime Lexeme count crosses a 10,000 boundary\n\nBot checks this data every 30 minutes, the value that is checked is calculated once a day.\n\n![](https://i.imgur.com/QYNDkNn.png)\n\n## Development\n\nYou'll need to install my dependencies using composer.\n\n```sh\ncomposer install\n```\n\nYou can run a single localy only echo version using:\n\n```sh\nI_AM_BRING_TESTED=1 php run.php\n```\n\nThis will not use the main persistent storage, and also it will not tweet!\n\nAnd in order to fully integrate with the services you'll need to populate a `.env` file.\nCheckout `.env.example` for what is needed.\n\nThen just run the main script.\n\n```sh\nphp run.php\n```\n\n## Deployment\n\nI run on Github Actions on a cron using a docker container.\n\nYou can build the docker container using the following.\n\n```sh\ndocker build . -t twitter-wikidatameter\n```\n\n## Makes use of\n\nServices:\n\n- [Github Actions](https://github.com/features/actions) - Building Docker images \u0026 running the cron for the bot\n- [Wikidata](https://www.wikidata.org) - Getting the edit data (live)\n- [Wikimedia Graphite](graphite.wikimedia.org) - Getting entity count data (daily)\n- [JSONStorage.net](https://www.jsonstorage.net/) - Some persistence between runs\n- [Twitter](https://www.twitter.com) - For publishing the tweets\n\nLibraries:\n\n- [addwiki/mediawiki-api-base](https://github.com/addwiki/mediawiki-api-base) - Talking to the Wikidata API\n- [atymic/twitter](https://github.com/atymic/twitter) - Talking to the Twitter API\n- [vlucas/phpdotenv](https://github.com/vlucas/phpdotenv) - Reading env vars from a .env file\n- [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) - Talking to the JSONStorage.net API\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faddshore%2Ftwitter-wikidatameter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faddshore%2Ftwitter-wikidatameter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faddshore%2Ftwitter-wikidatameter/lists"}