Skip to content

Commit

Permalink
Merge pull request #51 from flytam/chore/es
Browse files Browse the repository at this point in the history
refactor: es only
  • Loading branch information
flytam authored Sep 15, 2024
2 parents 1220825 + eb8541e commit b0d00d9
Show file tree
Hide file tree
Showing 24 changed files with 9,717 additions and 8,888 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx pretty-quick --staged
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

### cli 使用

> 请安装 Node.js >= 18
```bash
# help
npx csdnsynchexo@latest --help
Expand Down Expand Up @@ -65,6 +67,7 @@ run(config).then((res) => {
#### 支持平台

**csdn**

- type csdn
- userId
csdn 用户名。如`https://blog.csdn.net/flytam`的 flytam
Expand All @@ -77,6 +80,7 @@ run(config).then((res) => {
- 获取方式:新开一个页面,`F12(mac: cmd+shift+i)`打开控制台,[点击](https://blog-console-api.csdn.net/v1/editor/getArticle?id=104101476)抓包这个请求的`request headers`中的`cookie`后面那段值

**掘金**

- type juejin
- userId
掘金用户 id。如`https://juejin.cn/user/289926799429704/posts``289926799429704`
Expand All @@ -87,38 +91,42 @@ run(config).then((res) => {
掘金 cookie 信息。不提供使用非鉴权 api,部分老文章 markdown 格式可能有问题

**博客园**

- type bokeyuan
- userId
博客园用户 id。如`https://www.cnblogs.com/flytam/``flytam`
- output
输出路径。默认`.`

**segmentfault**

- type segmentfault
- userId
segmentfault id。如`https://segmentfault.com/u/flytam``flytam`
- output
输出路径。默认`.`

**腾讯云加社区**

- type tengxunyun
- userId
腾讯云加社区 id。如`https://cloud.tencent.com/developer/user/1132538/articles``1132538`
- output
输出路径。默认`.`

**github issue 博客**

- type github
- userId
githun 用户名,如`https://github.com/flytam`的 flytam
- repo
写博客的仓库,如`https://github.com/flytam/blog`的 blog

**掘金小册**
- type juejin_book
- userId 掘金小册id,如https://juejin.cn/book/7070324244772716556 的7070324244772716556
- cookie 掘金已购买小册的账号cookie信息

- type juejin_book
- userId 掘金小册 id,如https://juejin.cn/book/7070324244772716556 的 7070324244772716556
- cookie 掘金已购买小册的账号 cookie 信息

## 高级选项 beta

Expand Down
Loading

0 comments on commit b0d00d9

Please sign in to comment.