louisun / isearch Goto Github PK
View Code? Open in Web Editor NEW有道词典 命令行查询 柯林斯词典 单词管理 本地保存
License: MIT License
有道词典 命令行查询 柯林斯词典 单词管理 本地保存
License: MIT License
feature request.
有时间的时候我自己做个PR
请问柯林斯本地词典从哪下载?是sqlite格式吗?谢谢:-)
Traceback (most recent call last):
File "/usr/local/bin/s", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/iSearch/isearch.py", line 569, in main
search_database(word)
File "/usr/local/lib/python2.7/site-packages/iSearch/isearch.py", line 234, in search_database
print(colored(word + ' 不在数据库中,从有道词典查询', 'white', 'on_red'))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 15-28: ordinal not in range(128)
环境是macOS
我觉得这个功能可以由配置文件来实现,而不是选择版本安装。
下面这两个功能都是这样。
如果你嫌最新版每次提示保存烦,毕竟不是每个单词都想记下来,可重新安装 1.0.0 版本,用下面的命令
如果你嫌每次滚动很多屏,要翻上去才能看麻烦,也可选择安装1.0.0版,并且配合less 命令翻滚查看
确定只需要pip install iSearch就可以?
不需要配置环境变量?
我输入pip install iSearch 提示我安装成功了,然后我输入s提示我S不是一个命令。
虽然可以导出word.db为csv, anki 就可以使用了. 如果能命令行有参数支持就最好了。
s 体验
体验 不在本地,从有道词典查询
若存入本地,请输入优先级(1~5) ,否则 Enter 跳过
>>>
你好,朋友
由于一些不知名的原因,iSearch最近无法使用了。
错误信息如下:
λ ~/Tools/ s heap
Traceback (most recent call last):
File "/usr/local/bin/s", line 7, in
from iSearch.isearch import main
File "/usr/local/lib/python3.5/dist-packages/iSearch/isearch.py", line 9, in
import bs4
File "/usr/lib/python3/dist-packages/bs4/init.py", line 30, in
from .builder import builder_registry, ParserRejectedMarkup
File "/usr/lib/python3/dist-packages/bs4/builder/init.py", line 314, in
from . import _html5lib
File "/usr/lib/python3/dist-packages/bs4/builder/_html5lib.py", line 70, in
class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
AttributeError: module 'html5lib.treebuilders' has no attribute '_base'
我尝试过使用sudo pip3 install -U iSearch
对程序进行更新,但依然会出现上述错误。
did pip install iSearch --user
since without --user
raises an error.
run s hello
returns s: command not found
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.