RSSHub icon indicating copy to clipboard operation
RSSHub copied to clipboard

【知乎专栏】知乎专栏再次出现中文乱码

Open write3371 opened this issue 1 year ago • 8 comments

路由地址

/zhihu/zhuanlan/:id

完整路由地址

/zhihu/zhuanlan/:id

相关文档

https://docs.rsshub.app/routes/social-media#%E4%B8%93%E6%A0%8F

预期是什么?

中文

实际发生了什么?

中文乱码

部署

RSSHub 演示 (https://rsshub.app)

部署相关信息

No response

额外信息

see #15913 #15944

这不是重复的 issue

  • [X] 我已经搜索了 现有 issue,以确保该错误尚未被报告。

write3371 avatar Jul 20 '24 03:07 write3371

Searching for maintainers:
  • /zhihu/zhuanlan/:id: @DIYgod

To maintainers: if you are not willing to be disturbed, list your username in scripts/workflow/test-issue/call-maintainer.js. In this way, your username will be wrapped in an inline code block when tagged so you will not be notified.

If all routes can not be found, the issue will be closed automatically. Please use NOROUTE for a route-irrelevant issue or leave a comment if it is a mistake. 如果所有路由都无法匹配,issue 将会被自动关闭。如果 issue 和路由无关,请使用 NOROUTE 关键词,或者留下评论。我们会重新审核。

github-actions[bot] avatar Jul 20 '24 03:07 github-actions[bot]

Searching for maintainers:
  • /zhihu/zhuanlan/:id: @DIYgod

To maintainers: if you are not willing to be disturbed, list your username in scripts/workflow/test-issue/call-maintainer.js. In this way, your username will be wrapped in an inline code block when tagged so you will not be notified.

If all routes can not be found, the issue will be closed automatically. Please use NOROUTE for a route-irrelevant issue or leave a comment if it is a mistake. 如果所有路由都无法匹配,issue 将会被自动关闭。如果 issue 和路由无关,请使用 NOROUTE 关键词,或者留下评论。我们会重新审核。

github-actions[bot] avatar Jul 20 '24 03:07 github-actions[bot]

Searching for maintainers:
  • /zhihu/zhuanlan/:id: @DIYgod

To maintainers: if you are not willing to be disturbed, list your username in scripts/workflow/test-issue/call-maintainer.js. In this way, your username will be wrapped in an inline code block when tagged so you will not be notified.

If all routes can not be found, the issue will be closed automatically. Please use NOROUTE for a route-irrelevant issue or leave a comment if it is a mistake. 如果所有路由都无法匹配,issue 将会被自动关闭。如果 issue 和路由无关,请使用 NOROUTE 关键词,或者留下评论。我们会重新审核。

github-actions[bot] avatar Jul 20 '24 03:07 github-actions[bot]

https://blog.csdn.net/m0_62770144/article/details/140456239

dzx-dzx avatar Jul 28 '24 13:07 dzx-dzx

https://github.com/GuanFoxyier/allMycodes/blob/2df1ff8208e2e41b3b90768daf251c425a793503/zhihu/zhihu_webpack/__zse_ck.js

dzx-dzx avatar Aug 06 '24 17:08 dzx-dzx

https://github.com/GuanFoxyier/allMycodes/blob/2df1ff8208e2e41b3b90768daf251c425a793503/zhihu/zhihu_webpack/__zse_ck.js

在本地可以正常生产随机的值,但是请求知乎,还是返回的乱码。

curl 'https://zhuanlan.zhihu.com/p/597586623' \
  -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \
  -H 'accept-language: zh-CN,zh;q=0.9' \
  -H 'cache-control: no-cache' \
  -H 'cookie: __zse_ck=001_F3X=MvcD8wL3cBVPN0d8zj7GVUIqgsyEzahavGOSNkTdDIlitFZqG6ziwz/Pc1GJF6jO17VVASbHqcBsFcZtNtJYBbCPbYG7G4Fb/uiFCg4MI68jP88gxkTBLBaqPMNK' \
  -H 'pragma: no-cache' \
  -H 'priority: u=0, i' \
  -H 'referer: https://zhuanlan.zhihu.com/p/597586623' \
  -H 'sec-ch-ua: "Not)A;Brand";v="99", "Microsoft Edge";v="127", "Chromium";v="127"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "macOS"' \
  -H 'sec-fetch-dest: document' \
  -H 'sec-fetch-mode: navigate' \
  -H 'sec-fetch-site: same-origin' \
  -H 'upgrade-insecure-requests: 1' \
  -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36'````

练昌AGI渴颜:睁屋恤辫幔栈(LLM)映酬芳集 - 知乎```

felixjichao avatar Aug 07 '24 10:08 felixjichao

太神秘了…… @felixjichao User Agent可能是cookie计算的一部分,也许应该和代码里一致。

dzx-dzx avatar Aug 07 '24 10:08 dzx-dzx

User Agent和js代码里一致,看起来还是乱码了。。

klaus2015 avatar Aug 19 '24 08:08 klaus2015

知乎关怀版貌似还是正常的,是否有大佬愿意试试?

ghost avatar Oct 25 '24 07:10 ghost

似乎不止是专栏,answers,posts都有乱码问题。

WindowsXp-Beta avatar Oct 26 '24 23:10 WindowsXp-Beta

update: xhu的link有乱码,原本的link没有乱码。

WindowsXp-Beta avatar Oct 27 '24 01:10 WindowsXp-Beta

似乎是cookie后有乱码。

否有可能检测乱码(低频汉字出现次数过高),自动fallback到正常版本?

ghost avatar Nov 03 '24 15:11 ghost

Update: 动态无乱码 / 回答有乱码,非常诡异。

notlsd avatar Nov 06 '24 06:11 notlsd

似乎是cookie后有乱码。

否有可能检测乱码(低频汉字出现次数过高),自动fallback到正常版本?

@WindowsXp-Beta

问客服,系统检测到您的账号有异常使用行为 第一次乱码 24小时,若在此检测异常,乱码时长会增加

是知乎服务器端的操作,我用网页版也是乱码 加cookies 后出现的

抓取太多被定位到账户了

KwToPA avatar Dec 07 '24 08:12 KwToPA

https://github.com/DIYgod/RSSHub/issues/17581#issuecomment-2525028238

https://rsshub.app/zhihu/xhu/people/activities/246e6cf44e94cefbf4b959cb5042bc91

目前rsshub官方的 /zhihu/xhu 这个路由正常工作,我自建的就是

Error Message: FetchError: [GET] "https://api.zhihuvvv.workers.dev/guests/token": 401 Unauthorized

KwToPA avatar Dec 07 '24 08:12 KwToPA

Helpful Information

Error Message: FetchError: [GET] "https://api.zhihuvvv.workers.dev/people/246e6cf44e94cefbf4b959cb5042bc91/activities?before_id=0&limit=20": 403 Forbidden

Route: /zhihu/xhu/people/activities/:hexId

Full Route: /zhihu/xhu/people/activities/246e6cf44e94cefbf4b959cb5042bc91

Node Version: v22.13.0

Git Hash: 69f7d21c

Git Date: Wed, 15 Jan 2025 06:29:34 GMT 官网路由也403了

YukiSou avatar Jan 15 '25 09:01 YukiSou

@YukiSou 现在的最新状况是,网页端无乱码,但一直让我点击验证,不然无法浏览。 rss路由则是偶尔全封,一天内全解禁。 需要包含z_c0的cookie

KwToPA avatar Jan 18 '25 10:01 KwToPA