A command line client of youdao dictionary, based on python3(requests + bs4)
一个基于python3的命令行有道词典客户端,通过requests与bs4进行网页爬虫实现
Python3(with Python Standard Library), bs4, requests
just download youdao_dict_get.py and give executable permission by running chmod +x youdao_dict_get.py
command (for Windows user, only need to download file, don't need to add executable permission)
直接下载 youdao_dict_get.py 文件并使用 chmod +x youdao_dict_get.py
指令授予可执行权限既可(windows用户仅需下载,无需授予可执行权限)
For linux and macOS user:
./youdao_dict_get.py
For Windows user:
python3 youdao_dict_get.py
You can search word from command line.
python3 youdao_dict_get.py [Your word]
For example:
~$ python3 youdao_dict_get.py --help
All available commands:
/? print this information
/help print this information
/exit quit program
/quit quit program
/clear clear screen output
/version print program version
If you want to search any word, just type word after prompt.
~$ python3 youdao_dict_get.py submission
Word meaning:
n.屈服,投降;提交,呈递;提交的文件,呈递材料;<法律>(向法官提出的)看法,意见;<正式> 意见,建议;<古> 谦恭,温顺;(摔跤)制服
Derived words:
复数submissions