fix(docs): xiaohongshu doc missing (#16405)

* fix(docs): xiaohongshu docs missing

* fix(docs): xiaohongshu doc missing - params options

* fix(docs): xiaohongshu doc missing - misspell

* Update lib/routes/xiaohongshu/user.ts

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/routes/xiaohongshu/user.ts

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/routes/xiaohongshu/user.ts

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* fix(docs): xiaohongshu doc missing - category enum

* docs: add anti crawler

---------
This commit is contained in:
雲
2024-08-17 23:38:39 +08:00
committed by GitHub
co-authored by Tony
parent 5a5bce73fc
commit 5e0a93e1d7
2 changed files with 33 additions and 4 deletions
+10 -2
View File
@@ -10,9 +10,17 @@ export const route: Route = {
target: '/user/:user_id/notes',
},
],
name: 'Unknown',
maintainers: [],
name: '用户笔记 全文',
maintainers: ['howerhe'],
handler,
example: '/xiaohongshu/user/52d8c541b4c4d60e6c867480/notes/fulltext',
features: {
antiCrawler: true,
requirePuppeteer: true,
},
parameters: {
user_id: 'user id, length 24 characters',
},
};
async function handler(ctx) {
+23 -2
View File
@@ -5,9 +5,30 @@ import InvalidParameterError from '@/errors/types/invalid-parameter';
export const route: Route = {
path: '/user/:user_id/:category',
name: 'Unknown',
maintainers: [],
name: '用户笔记',
maintainers: ['lotosbin'],
handler,
example: '/xiaohongshu/user/593032945e87e77791e03696/notes',
features: {
antiCrawler: true,
requirePuppeteer: true,
},
parameters: {
user_id: 'user id, length 24 characters',
category: {
description: 'category, notes or collect',
options: [
{
value: 'notes',
label: 'notes',
},
{
value: 'collect',
label: 'collect',
},
],
},
},
};
async function handler(ctx) {