Commit Graph
118 Commits
Author SHA1 Message Date
DIYgod 2dce2e32dd feat: docs sorting and auto popular 2025-05-31 17:10:01 +08:00
DIYgod 645c202308 fix: zhihu redirection 2025-05-29 12:12:16 +08:00
DIYgod b39937a123 fix: zhihu hot 2025-05-29 12:08:20 +08:00
Yuan Xu 33336a95d5 fix: repair some zhihu routes (#19183) 2025-05-28 02:46:52 +08:00
DIYgod da1175d400 feat: zhihu check-cookie 2025-05-27 20:30:20 +08:00
Guorui Yu d326b3351d feat(route/zhihu): require ZHIHU_COOKIES for authentication (#19075) 2025-05-11 21:48:30 +08:00
Tony a5e2e295dc refactor: fix all get to toArray (#19000)
* refactor: fix all get

* fix(utils/common-config): charset case compare

* Revert "fix(utils/common-config): charset case compare"

This reverts commit 3c1880f2fad53ad2cafddcee7741390fd46fa3d2.

* fix: nga

* fix: notateslaapp

* fix: ps

* fix: xjtu

* fix: enforce error on restricted syntax for get calls

* fix: eslint

* fix: more eslint
2025-05-04 05:24:53 +08:00
Tony f19a725157 refactor: fix all no array reduce (#18973)
* refactor: no-array-reduce cleanup

* refactor: keep

* refactor: nhk

* refactor: rattibha

* fix: cctv

* fix: jiemian

* refactor: juejin

* refactor: kpopping

* refactor: yoasobi-music

* refactor: mycard520

* refactor: newrank

* refactor: sse

* refactor: zhihu

* feat!: remove trending

https://github.com/huqi-pr/trending-in-one is archived and no longer being updated.
https://github.com/huqi-pr/trending-in-one/commit/2ef4cd236fcccb908be7907d5ac9aab6f1f4a188

* refactor: sspai

* refactor: sysu

* refactor: nikkei

* refactor: utils

* refactor: mydrivers

* refactor: scmp

* refactor: gov/moa

* refactor: bloomberg

* refactor: manhuagui

* refactor: twitter
2025-04-30 04:16:32 +08:00
pseudoyu 8e15864469 fix(route/zhihu): question url 2025-04-26 12:25:38 +08:00
Andvari aa38e959e7 fix(route/zhihu): Allow to set __zse_ck in signedHeader (#18774) 2025-04-05 01:14:45 +08:00
Andvari aa86e827f8 fix(route/zhihu): Correct API path (#18669) 2025-03-24 16:15:19 +08:00
Andvari 24f7bbe481 fix(route/zhihu): Use Web API for zhihu answers (#18550) 2025-03-12 00:33:46 +08:00
dependabot[bot]andTony 8a0efc0ba2 chore(deps-dev): bump eslint-plugin-unicorn from 56.0.1 to 57.0.0 (#18392)
* chore(deps-dev): bump eslint-plugin-unicorn from 56.0.1 to 57.0.0

Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 56.0.1 to 57.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases)
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v56.0.1...v57.0.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-unicorn
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: remove unicorn plugin

* style: fix eslint issues

* style: fix more issues

* chore: flat config unicorn

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2025-02-19 05:10:11 +08:00
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