Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/futantan/dic-scraper

Linux terminal Dictionary
https://github.com/futantan/dic-scraper

Last synced: about 1 month ago
JSON representation

Linux terminal Dictionary

Awesome Lists containing this project

README

        

# Dic-scraper

最简单的linux查词命令。

```
$> dic hello world
你好世界
```

```
$> dic hack
n. 砍,劈;出租马车
vt. 砍;出租
vi. 砍
n. (Hack)人名;(英、西、芬、阿拉伯、毛里求)哈克;(法)阿克
```

#Setup
```
git clone https://github.com/futantan/Dic-scraper.git
pip install requests BeautifulSoup4
chmod a+x dic.py
ln dic.py /usr/local/bin/dic
```

#update
```
git pull
```

#Todo
- [ ] 支持中文

#Change Log
#0.1
- 实现有道词典英文单词(词组)翻译简单抓取
- 增加无网状态下的出错处理
- 使用硬链接

#关于我
- [我的博客](http://www.futantan.com)
- Email: [[email protected]](mailto:[email protected])

#License
```
Copyright 2015 futantan

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```