mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-24 23:42:40 +08:00
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:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user