fix(xiaohongshu): guid

This commit is contained in:
DIYgod
2024-09-09 22:53:10 +08:00
parent 64e00e743a
commit 5cf74002bd
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -51,6 +51,7 @@ async function handler(ctx) {
n.map(({ id, noteCard }) => ({
title: noteCard.displayTitle,
link: `${url}/${noteCard.noteId || id}`,
guid: noteCard.noteId || id || noteCard.cover?.infoList?.[0]?.url || noteCard.displayTitle,
description: `<img src ="${noteCard.cover.infoList.pop().url}"><br>${noteCard.displayTitle}`,
author: noteCard.user.nickname,
upvotes: noteCard.interactInfo.likedCount,
+3 -1
View File
@@ -7,7 +7,9 @@ const getUser = (url, cache) =>
cache.tryGet(
url,
async () => {
const browser = await puppeteer();
const browser = await puppeteer({
stealth: true,
});
try {
const page = await browser.newPage();
await page.setRequestInterception(true);