[go: up one dir, main page]

Skip to content

📖 Search wikipedia through your command line.

Notifications You must be signed in to change notification settings

guypeer8/wiki-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wiki

usage: wiki [term] [-hbltwc]
aliases:
 [ -h, --help ], show current help message
 [ -b, --briefs ], show brief description of first few matching results
 [ -l, --links ], show [x] wikipedia links matching input term
 [ -t, --text ], extract the text explaining the term
 [ -w, --write ], write the term search result to an html file
 [ -c, --locale ], the locale used to fetch the term from wikimedia

Usage

wiki ww2 # [= wiki ww2 -b] returns short text explaining the term "ww2"
wiki "pearl jam" -l 3 # returns 3 wikipedia links related to the term "pearl jam"
wiki cleopatra -w # writes and html file named "cleopatra" inside a folder named "wikidocs" on the current directory
wiki "donald trump" -c fr -l 2 # returns 2 wikipedia links in french related to "donald trump"
wiki zeus -t # extracts & logs the text related to the term "zeus"

Installation

If available in Hex, the package can be installed by adding wiki to your list of dependencies in mix.exs:

def deps do
  [
    {:wiki, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/wiki.

About

📖 Search wikipedia through your command line.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published