From a98f92056e17f431ce1805cc5b3f78d718f230b3 Mon Sep 17 00:00:00 2001 From: Ljzd-PRO <63289359+Ljzd-PRO@users.noreply.github.com> Date: Sun, 7 Apr 2024 01:20:08 +0800 Subject: [PATCH] docs: Add docs for `length`, `offset` option again (lost in merge) [skip ci] --- README.md | 6 ++++++ README_zh-CN.md | 6 ++++++ docs/en/commands/guide.md | 15 +++++++++++++++ docs/en/index.md | 6 ++++++ docs/zh/commands/guide.md | 15 +++++++++++++++ docs/zh/index.md | 6 ++++++ 6 files changed, 54 insertions(+) diff --git a/README.md b/README.md index 4d3a85a..d32d3a8 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,12 @@ the downloaded files will be **skipped**. # Download all posts of the creator/artist ktoolbox sync-creator https://kemono.su/fanbox/user/9016 +# Download latest 10 posts of the creator/artist +ktoolbox sync-creator https://kemono.su/fanbox/user/9016 --length=10 + +# Download latest No.11-No.15 posts of the creator/artist +ktoolbox sync-creator https://kemono.su/fanbox/user/9016 --offset=10 --length=5 + # Download posts from the creator/artist from 2024-1-1 to 2024-3-1 ktoolbox sync-creator https://kemono.su/fanbox/user/9016 --start-time=2024-1-1 --end-time=2024-3-1 ``` diff --git a/README_zh-CN.md b/README_zh-CN.md index 40c56da..29de32a 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -102,6 +102,12 @@ ktoolbox download-post https://kemono.su/fanbox/user/49494721/post/6608808 # 下载作者/画师的所有作品 ktoolbox sync-creator https://kemono.su/fanbox/user/9016 +# 下载作者/画师最新的 10 个作品 +ktoolbox sync-creator https://kemono.su/fanbox/user/9016 --length=10 + +# 下载作者/画师最新的第 11 至 15 个作品 +ktoolbox sync-creator https://kemono.su/fanbox/user/9016 --offset=10 --length=5 + # 下载作者/画师从 2024-1-1 到 2024-3-1 的作品 ktoolbox sync-creator https://kemono.su/fanbox/user/9016 --start-time=2024-1-1 --end-time=2024-3-1 ``` diff --git a/docs/en/commands/guide.md b/docs/en/commands/guide.md index 3c85d47..cf0b936 100644 --- a/docs/en/commands/guide.md +++ b/docs/en/commands/guide.md @@ -44,6 +44,21 @@ ktoolbox sync-creator https://kemono.su/fanbox/user/9016 ??? tip "Update creator directory" You can rerun the command, files with the same filename will be skipped. +## Download a specified number of posts from the creator + +`sync-creator` + +- `--offset`: Posts result offset (or start offset) +- `--length`: The number of posts to fetch, defaults to fetching all posts + +```bash +# Download latest 10 posts of the creator/artist +ktoolbox sync-creator https://kemono.su/fanbox/user/9016 --length=10 + +# Download latest No.11-No.15 posts of the creator/artist +ktoolbox sync-creator https://kemono.su/fanbox/user/9016 --offset=10 --length=5 +``` + ## Download posts that published within the specified time range `sync-creator` diff --git a/docs/en/index.md b/docs/en/index.md index ea787d6..6389bac 100644 --- a/docs/en/index.md +++ b/docs/en/index.md @@ -93,6 +93,12 @@ ktoolbox download-post https://kemono.su/fanbox/user/49494721/post/6608808 # Download all posts of the creator/artist ktoolbox sync-creator https://kemono.su/fanbox/user/9016 +# Download latest 10 posts of the creator/artist +ktoolbox sync-creator https://kemono.su/fanbox/user/9016 --length=10 + +# Download latest No.11-No.15 posts of the creator/artist +ktoolbox sync-creator https://kemono.su/fanbox/user/9016 --offset=10 --length=5 + # Download posts from the creator/artist from 2024-1-1 to 2024-3-1 ktoolbox sync-creator https://kemono.su/fanbox/user/9016 --start-time=2024-1-1 --end-time=2024-3-1 ``` diff --git a/docs/zh/commands/guide.md b/docs/zh/commands/guide.md index b038311..0b2e6b0 100644 --- a/docs/zh/commands/guide.md +++ b/docs/zh/commands/guide.md @@ -42,6 +42,21 @@ ktoolbox sync-creator https://kemono.su/fanbox/user/9016 --offset=10 --length=5 ??? tip "更新作者目录" 你可以再次运行命令,文件名相同的文件将会被跳过。 +## 下载指定数量的作品 + +`sync-creator` + +- `--offset`:作品结果偏移量(或起始偏移量) +- `--length`:要获取的作品数量,默认获取所有作品 + +```bash +# 下载作者/画师最新的 10 个作品 +ktoolbox sync-creator https://kemono.su/fanbox/user/9016 --length=10 + +# 下载作者/画师最新的第 11 至 15 个作品 +ktoolbox sync-creator https://kemono.su/fanbox/user/9016 --offset=10 --length=5 +``` + ## 下载在指定时间范围内发布的作品 `sync-creator` diff --git a/docs/zh/index.md b/docs/zh/index.md index fbdebeb..0a67de6 100644 --- a/docs/zh/index.md +++ b/docs/zh/index.md @@ -92,6 +92,12 @@ ktoolbox download-post https://kemono.su/fanbox/user/49494721/post/6608808 # 下载作者/画师的所有作品 ktoolbox sync-creator https://kemono.su/fanbox/user/9016 +# 下载作者/画师最新的 10 个作品 +ktoolbox sync-creator https://kemono.su/fanbox/user/9016 --length=10 + +# 下载作者/画师最新的第 11 至 15 个作品 +ktoolbox sync-creator https://kemono.su/fanbox/user/9016 --offset=10 --length=5 + # 下载作者/画师从 2024-1-1 到 2024-3-1 的作品 ktoolbox sync-creator https://kemono.su/fanbox/user/9016 --start-time=2024-1-1 --end-time=2024-3-1 ```