Commit Graph
105 Commits
Author SHA1 Message Date
c405ee80ee feat: add an router for getting all collections of a user in zhihu.com. (#18028)
* 添加知乎路由,用于获取指定用户所有公开的收藏内容

* 修改example地址

* 修改代码以符合路由规范

* Update lib/routes/zhihu/all-collections.ts

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* 修改代码以符合路由规范和代码审阅者要求的got请求代码格式统一和re-cast的问题

---------

Co-authored-by: yuerongkang <yuerongkang@drivedream.com>
2025-01-07 02:59:37 +08:00
Tony 04a3e88448 docs: fix admonitions syntax (#18018) 2025-01-01 15:52:40 +08:00
远浅 3f94723d7a fix: (routes/zhihu/utils) getSignedHeader throw error cause request failed and ts type fix (#18001)
* refactor: it looks good to me

* refactor: it looks good to me
2025-01-01 01:33:07 +08:00
pseudoyu 0a42f88de7 feat(route): add lang field in route namespace 2024-11-01 22:09:31 +07:00
pseudoyu a50a51286b fix(route/zhihu): get rid of outdated zhihu daily api and use web html 2024-10-29 20:44:44 +07:00
Andvari 471d146dff fix(route/zhihu): Sanitize the title when parsing "pins" with links. (#17010)
* fix(route/zhihu): Sanitize the title when parsing "pins" with links.

* Use `sanitizeHtml` instead

---------
2024-10-07 08:54:44 +08:00
Andvari 27474442ca fix(route/zhihu): Repair the regex for extracting __zse_ck (#17011) 2024-10-06 04:21:59 -07:00
Andvari 482a80c5a3 feat(route/zhihu): Remove filter from timeline (#16949)
* feat(route/zhihu): Remove filter from timeline

* .
2024-09-28 00:13:27 +08:00
Andvari 6f6aa405df fix(route/zhihu): Use signed header when fetching zhuanlan articles to prevent scrambled text. (#16742) 2024-09-13 23:34:06 +08:00
AndvariandTony d8b7aae47a fix(route/zhihu): Fix d_c0 (#16691)
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2024-09-11 23:33:16 +08:00
Entropy 04e766d0f5 fix(route/zhihu): Fix bug that zhihu answers would be truncated (#16473)
* fix(route/zhihu): Fix bug that zhihu answers would be truncated

* fix(route/zhihu): Fix bug that zhihu answers would be truncated

* fix(route/zhihu): Fix bug that zhihu answers would be truncated

* fix(route/zhihu): Fix bug that zhihu answers would be truncated
2024-08-19 03:29:36 +08:00
Tony 665124e0d3 chore: update lint config 2024-08-12 21:18:14 +08:00
Andvari 265a1aad73 fix(route/zhihu): Trim characters while extracting cookies (#16320)
* Update utils.ts

* Update utils.ts
2024-08-01 18:58:28 +08:00
Andvari 774839be60 feat(route/zhihu): Allow to set login cookies (#16281)
* feat(route/zhihu): Allow to set login cookies

* Update the description.

* Update utils.ts
2024-07-29 22:44:04 +08:00
Andvari a5dc315c33 fix(route/zhihu): Drop preceding string while extracting d_c0 (#16166) 2024-07-25 17:34:35 +08:00
DIYgod f3315cdad4 feat: update popular category 2024-07-23 20:28:08 +08:00
DIYgod 703e46de70 feat: add view 2024-07-23 15:14:21 +08:00
Andvari 0479f549c5 fix(route): Correctly obtain d_c0 from response from Zhihu Zhuanlan (#16161)
* fix(route): Correctly obtain `d_c0` from response from Zhihu Zhuanlan

* Update utils.ts
2024-07-14 22:39:46 +08:00
Andvari 0152cfefde fix(route/zhihu): Extract __zse_ck in a new way. (#16137)
* fix(route/zhihu): Extract `__zse_ck` in a new way.

* Update utils.ts
2024-07-10 20:25:04 +08:00
15532 72d1f85d2f fix(route): fetch zhihu column info with signed header (#15982) 2024-06-25 01:32:01 +08:00
Tony abae13af5a fix(radar): zhihu posts source 2024-06-11 00:33:53 +08:00
Andvari af0199fbd6 feat(route/zhihu): Replace name fetching logic. (#15733)
* feat(route/zhihu): Replace name fetching logic.

* .

* Update posts.ts

* fix(route): optional `__zse_ck` (#15749)

* .

* .

* Update posts.ts

* Update posts.ts

* chore: add typing

---------
2024-05-29 22:58:57 +08:00
Tony 9dcc83bc84 fix(route): optional __zse_ck (#15749) 2024-05-28 22:26:04 +08:00
Tony 94ffb50814 fix(route): zhihu __zse_ck (#15707) 2024-05-25 22:29:42 +08:00
DIYgod 6ee5d7267b chore: add popular category 2024-05-19 23:00:43 +08:00
JimenezLi 70c4fe93d7 fix(route): fix utils for xhu (#15623) 2024-05-18 19:05:10 +08:00
Tony b7f8ff4632 fix(route): zhihu posts (#15618)
* chore: split zhihu header signing

* fix(route): zhihu posts
2024-05-18 00:35:59 +08:00
Tony c2510e0e2e fix(route): set preload to metadata as suggested by the [spec](https://html.spec.whatwg.org/multipage/media.html#attr-media-preload) (#15448) 2024-05-03 04:12:36 +08:00
karasu 3511bb3633 fix(route): zhihu/activities (#15252) 2024-04-16 17:06:10 +08:00
DIYgod 79fcce2729 feat: add ConfigNotFoundError and InvalidParameterError 2024-04-07 17:36:18 +08:00
JimenezLi b47839e41c fix(route): xhu (#15097) 2024-04-04 21:26:37 +08:00
Ernest Dong 71fa40962c fix(route): 知乎时间线 (#9485) (#15063)
* fix(route): 知乎时间线 (#9485)

* fix(知乎): use query parameter limit with default 15
2024-04-03 12:05:13 +08:00
CaoMeiYouRen 3b5b43a3dc fix(route): 修复 知乎日报路由 (#15008) 2024-03-29 12:23:18 +08:00
DIYgod 5f9d8d994e fix: route titles 2024-03-18 22:43:32 +08:00
Tony d585a87daf fix: allow multiple radar rules per route (#14800)
* fix: allow multiple radar rules per route

* fix: github folder

* feat: add namespace to radar target

* docs: fix types url
2024-03-16 03:28:44 +08:00
DIYgod 1afe43eccd feat: add config description field 2024-03-12 01:52:06 +08:00
DIYgod e5b8f852f5 feat: add requireConfig 2024-03-12 00:29:52 +08:00
DIYgod d83c85a349 feat: remove radar.ts maintainer.ts router.ts 2024-03-09 18:31:48 +08:00
DIYgod 33e2f17055 fix: wrong categories 2024-03-09 15:08:34 +08:00
DIYgod 76e7e8296b fix: add routes 2024-03-09 03:24:53 +08:00
DIYgod 45f9ea21fb feat: add routes 2024-03-09 03:06:53 +08:00
DIYgod f8b141ee6e feat: add namespace.ts 2024-03-09 01:53:22 +08:00
DIYgod e42ff57cb4 feat: replace require with import 5/n 2024-03-07 00:39:42 +08:00
DIYgod 34d889743b feat: replace require with import 4/n 2024-03-07 00:15:48 +08:00
DIYgod 156b58d780 feat: replace require with import 1/n 2024-03-06 23:39:15 +08:00
Yufan You 130b11224e chore: remove @ts-nocheck (#14669) 2024-03-05 21:06:03 +08:00
DIYgod d93a301d97 feat: build-radar.ts 2024-03-04 01:52:04 +08:00
DIYgod 2c7d7f9205 feat: build-maintainer.ts 2024-03-04 01:38:38 +08:00
DIYgod 8065ededf5 feat: rename routes .js to .ts 2024-03-04 00:35:37 +08:00
DIYgod df57bb5d50 feat: esm standard for routes 2024-03-02 03:25:26 +08:00