GitXplorerGitXplorer
f

Dic-scraper

public
6 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
4182a8153fabdad859da81d2060102d2834109c8

Update README.md

ffutantan committed 10 years ago
Unverified
f022fad738235d32359ac23d106fec1df4e285f6

update README

ffutantan committed 10 years ago
Unverified
2a8fe3e5a38e9081dd24dee1ec2cf75d9abc63af

update Readme

ffutantan committed 10 years ago
Unverified
64f81bbccb85b51f435454e3728f46ad03127b78

Update Readme

ffutantan committed 10 years ago
Unverified
e44b1ac6fedbeeadf7e7d7bd10098f4789e0aa05

update README

ffutantan committed 10 years ago
Unverified
8cfbfbaa607fc68b2203a0f509b96fc14a1af431

add error hanlde while network is not available

ffutantan committed 10 years ago

README

The README file for this repository.

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

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

#关于我

#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.