🐞 fix: 修复知乎热榜 #105

This commit is contained in:
底层用户
2025-07-29 09:45:44 +08:00
parent d5581815f4
commit dad7e442da
3 changed files with 453 additions and 419 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "dailyhot-api",
"version": "2.0.7",
"version": "2.0.8",
"description": "An Api on Today's Hot list",
"keywords": [
"API",
@@ -36,40 +36,39 @@
},
"type": "module",
"dependencies": {
"@hono/node-server": "^1.14.0",
"axios": "^1.8.4",
"@hono/node-server": "^1.17.1",
"axios": "^1.11.0",
"chalk": "^5.4.1",
"cheerio": "^1.0.0",
"cheerio": "^1.1.2",
"dayjs": "^1.11.13",
"dotenv": "^16.4.7",
"feed": "^5.0.0",
"dotenv": "^17.2.1",
"feed": "^5.1.0",
"flatted": "^3.3.3",
"hono": "^4.7.5",
"hono": "^4.8.9",
"iconv-lite": "^0.6.3",
"ioredis": "^5.6.0",
"ioredis": "^5.6.1",
"md5": "^2.3.0",
"node-cache": "^5.1.2",
"node-fetch": "^3.3.2",
"rss-parser": "^3.13.0",
"user-agents": "^1.1.496",
"user-agents": "^1.1.614",
"winston": "^3.17.0"
},
"devDependencies": {
"@eslint/js": "^9.23.0",
"@types/cheerio": "^0.22.35",
"@eslint/js": "^9.32.0",
"@types/md5": "^2.3.5",
"@types/node": "^22.13.17",
"@types/node": "^22.16.5",
"@types/user-agents": "^1.0.4",
"@types/xml2js": "^0.4.14",
"@typescript-eslint/eslint-plugin": "^8.29.0",
"@typescript-eslint/parser": "^8.29.0",
"@typescript-eslint/eslint-plugin": "^8.38.0",
"@typescript-eslint/parser": "^8.38.0",
"cross-env": "^7.0.3",
"eslint": "^9.23.0",
"globals": "^15.15.0",
"prettier": "^3.5.3",
"tsx": "^4.19.3",
"typescript": "^5.8.2",
"typescript-eslint": "^8.29.0"
"eslint": "^9.32.0",
"globals": "^16.3.0",
"prettier": "^3.6.2",
"tsx": "^4.20.3",
"typescript": "^5.8.3",
"typescript-eslint": "^8.38.0"
},
"engines": {
"node": ">=20"

831
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -18,7 +18,7 @@ export const handleRoute = async (_: undefined, noCache: boolean) => {
};
const getList = async (noCache: boolean) => {
const url = `https://www.zhihu.com/api/v3/feed/topstory/hot-lists/total?limit=50&desktop=true`;
const url = `https://api.zhihu.com/topstory/hot-lists/total?limit=50`;
const result = await get({
url,
noCache,