* fix(route/zhihu): obtain __zse_ck from a browser session `__zse_ck` is computed at runtime by Zhihu's JS from the device fingerprint and `d_c0`, rotates every few days, and is cross-checked against `d_c0` by the backend, so it has to come from a real browser session. Drive a browser seeded with the configured cookies (including the `z_c0` login cookie that most endpoints now require) to compute a fresh, consistent `__zse_ck`, harvest the cookie jar, and cache it for 30 minutes so it is refreshed automatically. Recommended ZHIHU_COOKIES: "d_c0=...; z_c0=..." (omit `__zse_ck`). * fix(route/zhihu): fetch posts profile via API instead of HTML The user's HTML homepage (www.zhihu.com/people/:id) is now rate-limited (403) more aggressively than the API, which broke /zhihu/posts on the profile fetch even though the article-list API works. Read the profile (name, headline, avatar) from /api/v4/members/:id instead. * fix(route/zhihu): generate __zse_ck with JSDOM * fix(route/zhihu): use members API for org posts --------- Co-authored-by: DzmingLi <news@dzming.li> |
||
|---|---|---|
| .. | ||
| bookstore | ||
| execlib | ||
| pin | ||
| xhu | ||
| activities.ts | ||
| all-collections.ts | ||
| answers.ts | ||
| check-cookie.ts | ||
| collection.ts | ||
| daily-section.ts | ||
| daily.ts | ||
| hot.ts | ||
| namespace.ts | ||
| posts.ts | ||
| question.ts | ||
| timeline.ts | ||
| topic.ts | ||
| types.ts | ||
| utils.ts | ||
| weekly.ts | ||
| zhuanlan.ts | ||