wikr is a simple command line tool that provides quick summaries of Wikipedia articles in German or English.
- Search for Wikipedia articles
- Display article summaries directly in the console
- Support for German and English Wikipedia
- Caching of search results for faster access
- Interactive selection for multiple search results
-
Ensure that Go is installed on your system.
-
Clone this Repository:
git clone https://github.com/SvenSchneiderDVAG/wikr.git
-
Navigate to the project directory:
cd wikr
-
Build the program:
go build
wikr [de|en] search term
de
oren
(optional): Selects the language (German or English). Default is German.search term
: The term or article title to search for.-max
: The maximum number of results to display. Default is 5.-clear-cache
: Clear the cache.-version
: Show version.
wikr Eiffelturm
wikr en Albert Einstein
wikr -max 3 Eiffelturm
wikr -clear-cache
wikr -version
Wikr stores search results in a cache file (.wikr_cache.json
) in the user's home directory. The cache is valid for 24 hours.
- github.com/fatih/color for colored console output
Contributes are welcome! Please open an Issue or a Pull Request for suggestions or bug fixes.