Comments (10)
现在应该好了
from 60s.
没有解决,有时候出现,有时候不出现
from 60s.
没有解决,有时候出现,有时候不出现
浏览器无痕模式直接访问,也会带上 UA 的,但是之前无痕模式访问也会出现数据错乱的情况。
根据你的代码,你的意思,是用低版本的 UA 能够稳定拿到正常的数据?
from 60s.
我没有空频繁去 debug 和找解决方案,如果你觉得你的方案可以完美解决,欢迎 PR
from 60s.
https://github.com/DIYgod/RSSHub/blob/master/lib/routes/zhihu/utils.ts#L58-L103
知乎加了东西,这有解决方案,要加一个请求头 cookie,有时间再搞。
from 60s.
先用环境变量临时处理一下,这个 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.
我试了把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.
from 60s.
现在应该好了
现在应该好了
我拿来写微信脚本的
文本错乱我就获取链接
跳转知乎了
from 60s.
@lie-jiu 这个降级处理可以的。
主要是知乎新加的 Cookie 鉴权,目前没时间跟进,只能定时更新后台的 Cookie 环境变量。
如果需要及时处理的话,欢迎加入 readme 的反馈群聊,看到及时更新。
from 60s.
Related Issues (13)
- 【小爱同学】由于官方接口挂了,这个 API 也挂了
- 【提问】此 TS 项目该如何运行、部署? HOT 7
- 接口挂了,老哥什么时候修复一下啊 HOT 8
- 可以增加抖音热榜吗? HOT 6
- 获取内容缺失 HOT 3
- 能否给“每天60秒读懂世界”加一个更新日期或时间戳?以便验证是请求数据当天的内容?(其实这应该是建议而不是问题) HOT 7
- 大哥你这个https://60s.viki.moe/60s,域名未经过ICP备案 HOT 1
- 知乎更新,60s 接口返回的文本错乱 HOT 14
- 60s接口返回数据错乱 HOT 2
- 大佬,现在60s好像没显示全部的内容是为啥 HOT 2
- 汇率 HOT 2
- 域名可能遭遇局部 DNS 污染或者被墙,导致无法访问 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 60s.