Code Monkey home page Code Monkey logo

Comments (10)

vikiboss avatar vikiboss commented on September 18, 2024 1

QQ_1722573336819

现在应该好了

from 60s.

Li1Fan avatar Li1Fan commented on September 18, 2024

没有解决,有时候出现,有时候不出现

from 60s.

vikiboss avatar vikiboss commented on September 18, 2024

没有解决,有时候出现,有时候不出现

浏览器无痕模式直接访问,也会带上 UA 的,但是之前无痕模式访问也会出现数据错乱的情况。

根据你的代码,你的意思,是用低版本的 UA 能够稳定拿到正常的数据?

from 60s.

vikiboss avatar vikiboss commented on September 18, 2024

我没有空频繁去 debug 和找解决方案,如果你觉得你的方案可以完美解决,欢迎 PR

from 60s.

vikiboss avatar vikiboss commented on September 18, 2024

https://github.com/DIYgod/RSSHub/blob/master/lib/routes/zhihu/utils.ts#L58-L103

知乎加了东西,这有解决方案,要加一个请求头 cookie,有时间再搞。

from 60s.

vikiboss avatar vikiboss commented on September 18, 2024

先用环境变量临时处理一下,这个 Cookie 貌似一周有效,我记起来就更下,闲了再细搞。

https://github.com/vikiboss/60s/blob/main/src/services/60s.ts#L22

https://github.com/vikiboss/60s/blob/main/src/services/60s.ts#L32

from 60s.

Li1Fan avatar Li1Fan commented on September 18, 2024

我试了把header都加上,稳定了很多
{
"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",
"accept-language": "zh-CN,zh;q=0.9",
"sec-ch-ua": ""Chromium";v="110", "Not A(Brand";v="24", "Google Chrome";v="110"",
"sec-ch-ua-mobile": "?1",
"sec-ch-ua-platform": ""Android"",
"sec-fetch-dest": "document",
"sec-fetch-mode": "navigate",
"sec-fetch-site": "none",
"sec-fetch-user": "?1",
"upgrade-insecure-requests": "1",
"user-agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Mobile Safari/537.36"
}

from 60s.

lie-jiu avatar lie-jiu commented on September 18, 2024

QQ_1722573336819

from 60s.

lie-jiu avatar lie-jiu commented on September 18, 2024

QQ_1722573336819

现在应该好了

QQ_1722573336819

现在应该好了

我拿来写微信脚本的
文本错乱我就获取链接
跳转知乎了

from 60s.

vikiboss avatar vikiboss commented on September 18, 2024

@lie-jiu 这个降级处理可以的。

主要是知乎新加的 Cookie 鉴权,目前没时间跟进,只能定时更新后台的 Cookie 环境变量。

如果需要及时处理的话,欢迎加入 readme 的反馈群聊,看到及时更新。

from 60s.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.