This repository has been archived by the owner on Oct 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
基本使用
K4YT3X edited this page Aug 23, 2018
·
3 revisions
此教程适用于Windows和Linux
如果您是普通用户并且希望用此工具来下载图片,那么此篇教程将适合您。
首先,克隆代码
$ git clone https://github.com/K4YT3X/konadl.git
$ cd konadl
然后运行 konadl_cli.py
以下是一个简单的 KonaDL 运行配置。此配置会将10页的 safe,questionable 和 explicit 评级图片下载到 /tmp/konachan
。
$ python3 konadl_cli.py -o /tmp/konachan -e -s -q -n 10
您也可以手动设定多线程下载线程的数量。大多数情况下,默认设定足矣
-c 10
将会启用10条页面爬虫线程,默认10条。
-d 20
将会启用20条下载器线程,默认20条。
$ python3 konadl_cli.py -o /tmp/konachan -e -s -q -n 10 -c 10 -d 20
您可以使用 --update
开关来更新已经下载完的图片库。设定会跟随上次下载。
$ python3 konadl_cli.py -o /tmp/konachan/ --update
完整用法如下:
usage: konadl_cli.py [-h] [-n PAGES] [-a] [-p PAGE] [-y] [-o STORAGE] [-u]
[-s] [-q] [-e] [-c CRAWLERS] [-d DOWNLOADERS] [-v]
optional arguments:
-h, --help show this help message and exit
Controls:
-n PAGES, --pages PAGES
Number of pages to download
-a, --all Download all images
-p PAGE, --page PAGE Crawl a specific page
-y, --yandere Crawl Yande.re site
-o STORAGE, --storage STORAGE
Storage directory
-u, --update Update new images
Ratings:
-s, --safe Include Safe rated images
-q, --questionable Include Questionable rated images
-e, --explicit Include Explicit rated images
Threading:
-c CRAWLERS, --crawlers CRAWLERS
Number of post crawler threads
-d DOWNLOADERS, --downloaders DOWNLOADERS
Number of downloader threads
Extra:
-v, --version Show KonaDL version and exit