A CLI (command-line interface) to SpanishDict.com, a popular Spanish-English dictionary.
Did you know that SpanishDict downloads over 200KB for every word lookup? What bloat! sd
is a python script that reads those 200KB, parses out the junk, and nicely formats the most useful 90% of what's left for your command line viewing pleasure.
Translate a word with sd <some word>
, or conjugate a verb with sd conj <some verb>
.
Check out the output of sd cat
:
Also check out the output of sd conj tener
(colorized version of nick96's code):
sd
is a python 3 script built on "BeautifulSoup 4" and "Tabulate". Dependencies can be installed by running pip3 install beautifulsoup4
and pip3 install tabulate
(you might need root priviledges on your system).
The conjugation functionality was shamelessly stolen from github user nick96's "conjugate" project (although it no longer exists).
Installation is as simple as putting the sd
script somewhere on your path. On linux, /usr/local/bin
would be a standard place.