Skip to content

Commit

Permalink
斗图神器2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KilluaaaCHEN committed Apr 13, 2020
1 parent 87d4814 commit 5bebd0c
Show file tree
Hide file tree
Showing 15 changed files with 139 additions and 1,146 deletions.
32 changes: 11 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,20 @@
# 斗图神器

## 下载
### 下载

[下载斗图神器](斗图神器.alfredworkflow)
[下载斗图神器2.0](source/DouTu.alfredworkflow)

## 检索
### 使用

检索关键字: `dt`
- 检索关键字: `dt 关键字`
- 检索快捷键:`Comamnd+Shift+D`

检索快捷键:`Option+Shift+D`
### 效果图

下载所有图片关键字: `dadt` ,近10个进程同时下载(慎用!会造成服务器压力)
![效果图](source/preview.gif)

> 第一次检索的关键字只会显示第一页预览,搜过的关键字图片会自动缓
## 查阅

查看已下载图片数:`ls ~/Pictures/.DouTu | wc -w`

## 配置

图片默认保存在`~/Pictures/.DouTu/`下面,不要了可以直接删掉`rm -rf ~/Pictures/.DouTu`

想修改图片保存路径可以修改`src/Base.php`文件中的第`33`

## 效果图

![效果图](preview.gif)
### 说明

- 斗图神器依赖于[斗图啦](https://www.doutula.com)网站
- 2.0采用Golang开发,使用Goroutine提升用户体验
- 添加剪切板交互方式,感谢[Cong YU](https://github.com/imcuttle)贡献方案
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module DouTu2.0

go 1.14

require github.com/PuerkitoBio/goquery v1.5.1
10 changes: 10 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
github.com/PuerkitoBio/goquery v1.5.1 h1:PSPBGne8NIUWw+/7vFBV+kG2J/5MOjbzc7154OaKCSE=
github.com/PuerkitoBio/goquery v1.5.1/go.mod h1:GsLWisAFVj4WgDibEWF4pvYnkVQBpKBKeU+7zCJoLcc=
github.com/andybalholm/cascadia v1.1.0 h1:BuuO6sSfQNFRu1LppgbD25Hr2vLYW25JvxHs5zzsLTo=
github.com/andybalholm/cascadia v1.1.0/go.mod h1:GsXiBklL0woXo1j/WYWtSYYC4ouU9PqHO0sqidkEA4Y=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20200202094626-16171245cfb2 h1:CCH4IOTTfewWjGOlSp+zGcjutRKlBEZQ6wTn8ozI/nI=
golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
Binary file removed icon.png
Binary file not shown.
Loading

0 comments on commit 5bebd0c

Please sign in to comment.