https://github.com/howie6879/niyt
在你的终端看小说(Read the novel in your terminal) - NIYT
https://github.com/howie6879/niyt
novels novels-search owllook terminal-novels
Last synced: 5 months ago
JSON representation
在你的终端看小说(Read the novel in your terminal) - NIYT
- Host: GitHub
- URL: https://github.com/howie6879/niyt
- Owner: howie6879
- License: mit
- Created: 2017-09-04T08:22:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-08T06:44:19.000Z (over 7 years ago)
- Last Synced: 2024-06-20T16:33:04.136Z (10 months ago)
- Topics: novels, novels-search, owllook, terminal-novels
- Language: Go
- Size: 615 KB
- Stars: 155
- Watchers: 6
- Forks: 28
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
``` shell
███╗ ██╗██╗██╗ ██╗████████╗
████╗ ██║██║╚██╗ ██╔╝╚══██╔══╝
██╔██╗ ██║██║ ╚████╔╝ ██║
██║╚██╗██║██║ ╚██╔╝ ██║
██║ ╚████║██║ ██║ ██║
╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝```
[](https://github.com/howie6879/NIYT/releases) [](https://github.com/howie6879/NIYT/releases) [](https://github.com/howie6879/NIYT/blob/master/LICENSE)
> 这几天在看`go`,所以这是个练手项目,在终端里看小说
> Read the novel in your terminal - NIYT
### 1.How to use?
直接使用**编译好的可执行文件**,请在[release](https://github.com/howie6879/NIYT/releases)下载对应的版本,支持`mac win linux`
然后直接运行即可:
``` shell
# 若提示无法运行,例如在linux下
chmod a+x NIYT.linux# 以linux为例,运行下载的NIYT.linux
./NIYT.linux```
**如果在`win`下面出现排版混乱,请参考[这里](http://blog.csdn.net/iway_lch/article/details/50408796)来解决**
或者直接运行代码(需要`go`环境),体验最新功能:
``` shell
# 方式一
cd $GOPATH/src
git clone https://github.com/howie6879/NIYT.git
cd NIYT
go run main.go# 若想直接在终端使用
go install# 下面是编译语句
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o ./release/NIYT.mac
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ./release/NIYT.exe
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./release/NIYT.linux```
首先输入小说名称,调用第三方搜索,终端就会显示小说源,会自动判断优质源:

利用`get 2`进入提示响应速度最快的源,获取最新章节:

选择章节进行阅读,如阅读最新章节,`get 0`:

`show` 会以表格的形式再次展示当前源:

**享受阅读吧** ,觉得不错的话给一个`star`吧