Alpha version (in development), made via vibecoding with the gpt-5.2-codex model.
Small helper CLI to download, translate, preview, and publish Wikipedia articles.
Copy .env.sample to .env and fill your credentials. Bot passwords are the recommended way to authenticate
from scripts.
How to create a bot password:
- Go to
Especial:BotPasswordson es.wikipedia.org while logged in. - Create a new bot password (name it e.g.
wkp-cli). - Grant it permissions for
edit,read, andwrite. - Save the generated username/password pair.
WKP_USERNAME=Tin_nqn@wkp-cli
WKP_PASSWORD=bot-password-here
WKP_USER_AGENT=wkp/0.1 (https://github.com/mgaitan/wkp; contact: you@example.com)Optional translation settings:
WKP_TRANSLATE_URL=https://libretranslate.de/translate
WKP_TRANSLATE_KEY=Download wikitext:
uv run wkp download https://es.wikipedia.org/wiki/Juan_Mart%C3%ADn_MaldacenaTranslate from another language (creates a draft file):
uv run wkp translate https://de.wikipedia.org/wiki/Horacio_Casini --lang esPreview local wikitext:
uv run wkp preview articles/es/Horacio_Casini.wiki --lang esPublish wikitext:
uv run wkp publish articles/es/Horacio_Casini.wiki --lang es --summary "Actualiza biografia"translateuses LibreTranslate by default (best-effort with wikitext).publishuses Bot Passwords; create them inSpecial:BotPasswordson Wikipedia.- Files are stored under
articles/<lang>/. - Consider keeping
articles/outside the repo or ensure it stays ignored in git.