|
|
|
Show HN: Wikitool – CLI for fetching Wikipedia content
|
|
2 points
by moeffju
149 days ago
|
|
I wanted Wikipedia access for scripts and AI agents without scraping rendered pages. Using the API is lighter on Wikipedia's servers and compliant with their guidelines. So I built a command-line tool for fetching Wikipedia articles and search results via the REST API. wikitool Earth
wikitool "https://de.wikipedia.org/wiki/Erde"
wikitool search "intitle:einstein"
It parses Wikipedia URLs automatically (extracts language + title), supports all 300+ language editions, and exposes CirrusSearch query syntax for search.Output is wikitext by default, with `--html` and `--output json` options. Single static Go binary, no dependencies. Repo: https://github.com/teal-bauer/wikitool There's also a skill file (https://github.com/teal-bauer/wikitool-skill) that teaches Claude Code how to use it. |
|