-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from Ljzd-PRO/devel
Bump to v0.3.2
- Loading branch information
Showing
18 changed files
with
325 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Guide | ||
|
||
Check [Reference](reference.md) for all commands and their flags / parameters. | ||
|
||
## Get general help | ||
|
||
- `--help`, `-h` | ||
|
||
```bash | ||
ktoolbox -h | ||
``` | ||
|
||
## Get help of a command | ||
|
||
- `--help`, `-h` | ||
|
||
```bash | ||
ktoolbox download-post -h | ||
``` | ||
|
||
## Download a specific post | ||
|
||
`download-post` | ||
|
||
```bash | ||
ktoolbox download-post https://kemono.su/fanbox/user/49494721/post/6608808 | ||
``` | ||
??? info "If some files failed to download" | ||
If some files failed to download, you can try to execute the command line again, | ||
the downloaded files will be **skipped**. | ||
|
||
## Download all posts from a creator | ||
|
||
`sync-creator` | ||
|
||
```bash | ||
ktoolbox sync-creator https://kemono.su/fanbox/user/9016 | ||
``` | ||
??? info "Output" | ||
By default, you will get a `creator-indices.ktoolbox` file in the creator directory, | ||
you can use it to update the directory anytime. | ||
|
||
|
||
## Update a downloaded creator directory | ||
|
||
`sync-creator` | ||
|
||
- `--update-with` | ||
|
||
```bash | ||
ktoolbox sync-creator https://kemono.su/fanbox/user/641955 --update-with=./xxx/creator-indices.ktoolbox | ||
``` | ||
??? info "About `creator-indices.ktoolbox` file" | ||
The `creator-indices.ktoolbox` file contains the information and filepath of posts inside the directory. | ||
|
||
## Download posts that published within the specified time range | ||
|
||
`sync-creator` | ||
|
||
- `--start-time` | ||
- `--end-time` | ||
|
||
```bash | ||
# From 2023-8-5 to 2023-12-6 | ||
ktoolbox sync-creator https://kemono.su/fanbox/user/641955 --start-time=2023-8-5 --end-time=2023-12-6 | ||
|
||
# From 2023-8-5 to now | ||
ktoolbox sync-creator https://kemono.su/fanbox/user/641955 --start-time=2023-8-5 | ||
|
||
# Before 2023-8-5 | ||
ktoolbox sync-creator https://kemono.su/fanbox/user/641955 --end-time=2023-8-5 | ||
``` | ||
|
||
### Time Format | ||
|
||
The time value should match `%Y-%m-%d`, for example: | ||
- `2023-12-7` | ||
- `2023-12-07` | ||
- `2023-12-31` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
# Commands | ||
|
||
!!! info "Usage" | ||
Visit [Command](index.md#command) | ||
# Reference | ||
|
||
::: ktoolbox.cli.KToolBoxCli | ||
options: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Coomer | ||
|
||
KToolBox support downloading from Coomer.su / Coomer.party, but currently need to **configure** before it can use. | ||
|
||
You need to set the configuration by `prod.env` dotenv file or system environment variables: | ||
```dotenv | ||
# For Coomer API | ||
KTOOLBOX_API__NETLOC=coomer.su | ||
# For downloading files from Coomer server | ||
KTOOLBOX_API__FILES_NETLOC=coomer.su | ||
``` | ||
|
||
## About Coomer | ||
|
||
Description from [https://coomer.su](https://coomer.su) : | ||
|
||
> Coomer is a public archiver for: | ||
> | ||
> - OnlyFans | ||
> - Fansly | ||
> | ||
> Contributors here upload content and share it here for easy searching and organization. To get started viewing content, either search for creators on the creators page, or search for content on the posts page. If you want to contribute content, head over to the import page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# 向导 | ||
|
||
前往 [参考](reference.md) 所有命令以及它们的标志/参数. | ||
|
||
## 获取帮助总览 | ||
|
||
- `--help`, `-h` | ||
|
||
```bash | ||
ktoolbox -h | ||
``` | ||
|
||
## 获取某个命令的帮助信息 | ||
|
||
- `--help`, `-h` | ||
|
||
```bash | ||
ktoolbox download-post -h | ||
``` | ||
|
||
## 下载指定的作品 | ||
|
||
`download-post` | ||
|
||
```bash | ||
ktoolbox download-post https://kemono.su/fanbox/user/49494721/post/6608808 | ||
``` | ||
??? info "如果部分文件下载失败" | ||
如果部分文件下载失败,你可以尝试重新运行命令,已下载完成的文件会被 **跳过**。 | ||
|
||
## 下载作者的所有作品 | ||
|
||
`sync-creator` | ||
|
||
```bash | ||
ktoolbox sync-creator https://kemono.su/fanbox/user/9016 | ||
``` | ||
??? info "输出" | ||
默认情况下你会在作者目录下得到一个 `creator-indices.ktoolbox` 文件,你可以用它来更新目录。 | ||
|
||
|
||
## 更新一个作者目录 | ||
|
||
`sync-creator` | ||
|
||
- `--update-with` | ||
|
||
```bash | ||
ktoolbox sync-creator https://kemono.su/fanbox/user/641955 --update-with=./xxx/creator-indices.ktoolbox | ||
``` | ||
??? info "关于 `creator-indices.ktoolbox` 文件" | ||
`creator-indices.ktoolbox` 包含目录下的所有作品的信息和路径。 | ||
|
||
## 下载在指定时间范围内发布的作品 | ||
|
||
`sync-creator` | ||
|
||
- `--start-time` | ||
- `--end-time` | ||
|
||
```bash | ||
# 从 2023-8-5 到 2023-12-6 | ||
ktoolbox sync-creator https://kemono.su/fanbox/user/641955 --start-time=2023-8-5 --end-time=2023-12-6 | ||
|
||
# 从 2023-8-5 到 现在 | ||
ktoolbox sync-creator https://kemono.su/fanbox/user/641955 --start-time=2023-8-5 | ||
|
||
# 2023-8-5 之前 | ||
ktoolbox sync-creator https://kemono.su/fanbox/user/641955 --end-time=2023-8-5 | ||
``` | ||
|
||
### 时间格式 | ||
|
||
时间值应当符合 `%Y-%m-%d` 格式,例如: | ||
- `2023-12-7` | ||
- `2023-12-07` | ||
- `2023-12-31` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# 参考 | ||
|
||
::: ktoolbox.cli.KToolBoxCli | ||
options: | ||
show_signature: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Coomer | ||
|
||
KToolBox 支持从 Coomer.su / Coomer.party 下载,但目前在它能够使用之前需要进行 **配置**。 | ||
|
||
你需要通过 dotenv文件 `prod.env` 或系统环境变量来设置配置: | ||
```dotenv | ||
# Coomer API | ||
KTOOLBOX_API__NETLOC=coomer.su | ||
# 用于从 Coomer 服务器下载文件 | ||
KTOOLBOX_API__FILES_NETLOC=coomer.su | ||
``` | ||
|
||
## 关于 Coomer | ||
|
||
官网 [https://coomer.su](https://coomer.su) 的介绍: | ||
|
||
> Coomer is a public archiver for: | ||
> | ||
> - OnlyFans | ||
> - Fansly | ||
> | ||
> Contributors here upload content and share it here for easy searching and organization. To get started viewing content, either search for creators on the creators page, or search for content on the posts page. If you want to contribute content, head over to the import page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__title__ = "KToolBox" | ||
# noinspection SpellCheckingInspection | ||
__description__ = "A useful CLI tool for downloading posts in Kemono.party / .su" | ||
__version__ = "0.3.1" | ||
__version__ = "0.3.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.