Skip to content

Commit

Permalink
docs: python -m is not needed now
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
Ljzd-PRO committed Nov 29, 2023
1 parent 7e828f0 commit 0332ad3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ For more information, use the help command.

- Get general help:
```bash
python -m ktoolbox -h
ktoolbox -h
```
<details>
<summary>Return</summary>
Expand Down Expand Up @@ -105,7 +105,7 @@ For more information, use the help command.

- Get help of a command:
```bash
python -m ktoolbox download-post -h
ktoolbox download-post -h
```
<details>
<summary>Return</summary>
Expand Down Expand Up @@ -134,15 +134,15 @@ For more information, use the help command.

- Download a specific post:
```bash
python -m ktoolbox download-post https://kemono.su/fanbox/user/49494721/post/6608808
ktoolbox download-post https://kemono.su/fanbox/user/49494721/post/6608808
```

> 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:
```bash
python -m ktoolbox sync-creator https://kemono.su/fanbox/user/9016
ktoolbox sync-creator https://kemono.su/fanbox/user/9016
```

By default, you will get a `creator-indices.ktoolbox` file in the creator directory, \
Expand All @@ -151,7 +151,7 @@ For more information, use the help command.

- Update a downloaded creator directory:
```bash
python -m ktoolbox sync-creator https://kemono.su/fanbox/user/641955 --update-with=./xxx/creator-indices.ktoolbox
ktoolbox sync-creator https://kemono.su/fanbox/user/641955 --update-with=./xxx/creator-indices.ktoolbox
```

The `creator-indices.ktoolbox` file contains the information and filepath of posts inside the directory.
Expand Down
10 changes: 5 additions & 5 deletions README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

- 获取帮助总览:
```bash
python -m ktoolbox -h
ktoolbox -h
```
<details>
<summary>返回文本</summary>
Expand Down Expand Up @@ -105,7 +105,7 @@

- 获取某个命令的帮助信息:
```bash
python -m ktoolbox download-post -h
ktoolbox download-post -h
```
<details>
<summary>返回文本</summary>
Expand Down Expand Up @@ -134,22 +134,22 @@

- 下载指定的作品:
```bash
python -m ktoolbox download-post https://kemono.su/fanbox/user/49494721/post/6608808
ktoolbox download-post https://kemono.su/fanbox/user/49494721/post/6608808
```

> 如果部分文件下载失败,你可以尝试重新运行命令,已下载完成的文件会被**跳过**

- 下载作者的所有作品:
```bash
python -m ktoolbox sync-creator https://kemono.su/fanbox/user/9016
ktoolbox sync-creator https://kemono.su/fanbox/user/9016
```

默认情况下你会在作者目录下得到一个 `creator-indices.ktoolbox` 文件,你可以用它来更新目录。


- 更新一个作者目录:
```bash
python -m ktoolbox sync-creator https://kemono.su/fanbox/user/641955 --update-with=./xxx/creator-indices.ktoolbox
ktoolbox sync-creator https://kemono.su/fanbox/user/641955 --update-with=./xxx/creator-indices.ktoolbox
```

`creator-indices.ktoolbox` 包含目录下的所有作品的信息和路径。
Expand Down

0 comments on commit 0332ad3

Please sign in to comment.