If you have ever tried to learn some foreign language, you know learning words is undoubtedly one of the biggest challenges. I have used online web dictionary services with my native launguage, but they are weak in keeping your search history. My favorite service gives me only 10 histories, with which I will lose most of the history already when I come back later to actually memorize them.
I’ve always wanted a way to keep more search history. So I wrote a pair of python scripts that does html scraping and made it available on bash command line.
So my ideal usage would be like:
So here’s what I wrote. Note that this is completely for personal use, so no error check or anything like that.
And lastly, add the new scripts to the PATH. (Don’t forget to add +x, too.)
Remember you have all the responsibilities if you want to try scraping yourself.